mobidev_hasura

Last updated:

0 purchases

mobidev_hasura Image
mobidev_hasura Images
Add to Cart

Description:

mobidev hasura

Easily execute Hasura's query and mutations, without the need of any other package.
Features #

Query
Upsert (mutation)
rawQuery
rawMutation

Getting started #
Add mobidev_hasura to your pubspec.yaml
import the package:
import 'package:mobidev_hasura/mobidev_hasura.dart';
copied to clipboard
Usage #
var hasura = Hasura(
endpoint: 'https://myendpoint.com/v1/graphql',
token: 'my jwt token here'
);

var result = await hasura.query(table: 'customers', fields: {
'name',
'address',
'phone'
}, where: {
'name': {'_eq': 'josh'}
});

if (result.isOk) {
Map<String, dynamic> myRetrievedData = result.body;
//Do anything with your data
}
copied to clipboard
Additional information #
This is the initial release.
New features will be added soon.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.