simple_gql 1.1.1
simple_gql: ^1.1.1 copied to clipboard
A minimal library to do GraphQL queries and mutations (subscriptions not handled yet)
1.1.1 Minor changes #
- Added getter to GQLClient's headers property
1.1.0 Breaking changes #
- new object GQLClient used to define the URL and headers shared between queries. New usage example :
final client = GQLClient(
url: 'https://url.com'
headers: {'Authorization': 'Bearer $token'}
);
client.query(...);
// or
client.mutation(...);
- New managment of errors. Now, use a try/catch to catch errors. For more precision, use :
try{
client.query(...);
} on GQLError catch(gqlError){
// do stuff
} catch(e){
// do other stuff
}
1.0.0 Initial release #
- Support GQL Queries and Mutations