brick_graphql library
Classes
- Graphql
-
An annotation used to specify how a field is serialized for a
GraphqlAdapter
. Heavily inspired by JsonKey -
GraphqlAdapter<
TModel extends Model> - Constructors that convert app models to and from REST
- GraphqlModel
-
Models accessible to the
GraphqlProvider
- GraphqlModelDictionary
- Associates app models with their GraphqlAdapter
- GraphqlOperation
- A cohesive definition for GraphqlQueryOperationTransformer's instance fields.
- GraphqlProvider
-
A
Provider
fetches raw data and createsModel
s. An app can have manyProvider
s. - GraphqlProviderQuery
-
A
ProviderQuery
for a GraphqlProvider for use withQuery
- GraphqlQueryOperationTransformer
- This class should be subclassed for each model. For example:
- GraphqlSerializable
- An annotation used to specify a class to generate code for.
- RuntimeGraphqlDefinition
-
Used to define types in
GraphqlAdapter#fieldsToGraphqlRuntimeDefinition
. The build runner package extracts types and associations that would've been otherwise inaccessible at runtime.
Enums
- FieldRename
- Values for the automatic field renaming behavior for class-level serializables.