Skip to main content

zuraffa_graphql 7.6.1 copy "zuraffa_graphql: ^7.6.1" to clipboard
zuraffa_graphql: ^7.6.1 copied to clipboard

GraphQL capability for Zuraffa - schema-driven datasource generation, gql documents, and the graphql client surface (optional companion package; issue

example/README.md

zuraffa_graphql #

GraphQL client factory, subscription streams and a code generator that turns .graphql documents into typed Dart clients for Zuraffa apps.

Create a client #

import 'package:zuraffa_graphql/zuraffa_graphql.dart';

final client = createGraphQLClient(
  endpoint: 'https://api.example.com/graphql',
);

final result = await client.query(document, variables: {'id': 1});

Generate a typed datasource #

import 'package:zuraffa_graphql/zuraffa_graphql.dart';

final generator = DataSourceGenerator();
await generator.generate(
  schema: schemaText,
  documents: documentTexts,
  output: 'lib/src/data/datasources/',
);
0
likes
160
points
1.6k
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

GraphQL capability for Zuraffa - schema-driven datasource generation, gql documents, and the graphql client surface (optional companion package; issue

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, code_builder, dart_style, gql, graphql_plus, http, path, zuraffa

More

Packages that depend on zuraffa_graphql