brick_offline_first_with_graphql library
Classes
- ConnectOfflineFirstWithGraphql
- An annotation used to specify a class to generate code for.
- GraphqlOfflineQueueLink
- Stores all mutation requests in a SQLite database
- GraphqlRequestSqliteCacheManager
-
OfflineFirstWithGraphqlAdapter<
_Model extends OfflineFirstWithGraphqlModel> -
This adapter fetches first from
SqliteProvider
then hydrates withGraphqlProvider
. - 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.
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