offline_first_with_graphql library
Classes
- Graphql
-
An annotation used to specify how a field is serialized for a
GraphqlAdapter
. Heavily inspired by JsonKey - GraphqlOfflineQueueLink
- Stores all mutation requests in a SQLite database
- GraphqlProvider
-
A
Provider
fetches raw data and createsModel
s. An app can have manyProvider
s. - GraphqlRequestSqliteCacheManager
- GraphqlSerializable
- An annotation used to specify a class to generate code for.
-
OfflineFirstWithGraphqlAdapter<
_Model extends OfflineFirstWithGraphqlModel> -
This adapter fetches first from
SqliteProvider
then hydrates with GraphqlProvider. - OfflineFirstWithGraphqlModel
- OfflineFirstWithGraphqlRepository
- Ensures the remoteProvider is a GraphqlProvider. All requests to and from the remoteProvider pass through a seperate SQLite queue. If the app is unable to make contact with the remoteProvider, the queue automatically retries in sequence until it receives a response.
- 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 GraphqlSerializable.
Constants
- GRAPHQL_JOBS_ATTEMPTS_COLUMN → const String
- int
- GRAPHQL_JOBS_CREATED_AT_COLUMN → const String
- int; millisecondsSinceEpoch
- GRAPHQL_JOBS_DOCUMENT_COLUMN → const String
- String
- GRAPHQL_JOBS_LOCKED_COLUMN → const String
- int; 1 for true, 0 for false
- GRAPHQL_JOBS_OPERATION_NAME_COLUMN → const String
- String
- GRAPHQL_JOBS_PRIMARY_KEY_COLUMN → const String
- int; autoincrement'd
- GRAPHQL_JOBS_TABLE_NAME → const String
- GRAPHQL_JOBS_UPDATED_AT → const String
- int; millisecondsSinceEpoch
- GRAPHQL_JOBS_VARIABLES_COLUMN → const String
- json-encoded String