Graphql-flutter: Run Query manually just like Mutation

Created on 4 Aug 2018  路  1Comment  路  Source: zino-app/graphql-flutter

As we can trigger Mutation on CLICK event, how can do such thing for Quering ???

Like I am building a search functionality, which takes keywords and then search that data in database, but currently only Mutation can be triggered on events like keypress, keyenter etc..

everytime user type in search input I want to make a Query, in apollo we can pass WithApollo and then use this.props.client.query, how to handle such things ???

Most helpful comment

Okay functionality is already there.. but no docs is available, please make some deep docs for using library, it would help a lot :)

Client client = GraphqlProvider.of(context).value;
var hello = await client.query(query: queries.getUsers);

This solved my problem :)

>All comments

Okay functionality is already there.. but no docs is available, please make some deep docs for using library, it would help a lot :)

Client client = GraphqlProvider.of(context).value;
var hello = await client.query(query: queries.getUsers);

This solved my problem :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javi11 picture javi11  路  3Comments

vanelizarov picture vanelizarov  路  3Comments

dopecoder picture dopecoder  路  4Comments

Glup3 picture Glup3  路  3Comments

micimize picture micimize  路  4Comments