simple_gql 1.2.0 simple_gql: ^1.2.0 copied to clipboard
A minimal library to do GraphQL queries and mutations (subscriptions not handled)
1.2.0 Null Safety #
- Migration to null safety
- Added getter for http response if you want to access additional information.
1.1.2 Global default headers #
- Added possibility to set default headers for all GQLClient that will be created.
1.1.1 Minor changes #
- Added getter to GQLClient's headers property
1.1.0 #
- 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