simple_gql 1.2.0 copy "simple_gql: ^1.2.0" to clipboard
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
8
likes
120
pub points
27%
popularity

Publisher

unverified uploader

A minimal library to do GraphQL queries and mutations (subscriptions not handled)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, meta

More

Packages that depend on simple_gql