normalize library

Classes

FieldFunctionOptions
FieldPolicy<TExisting, TIncoming, TReadResult>
TypePolicy

Functions

denormalizeFragment({Map<String, dynamic> read(String dataId), DocumentNode document, Map<String, dynamic> idFields, String fragmentName, Map<String, dynamic> variables: const {}, Map<String, TypePolicy> typePolicies: const {}, DataIdResolver dataIdFromObject, bool addTypename: false, bool returnPartialData: false, String referenceKey: '\$ref'}) Map<String, dynamic>
Denormalizes data for a given fragment. [...]
denormalizeOperation({Map<String, dynamic> read(String dataId), DocumentNode document, String operationName, Map<String, dynamic> variables: const {}, Map<String, TypePolicy> typePolicies: const {}, DataIdResolver dataIdFromObject, bool addTypename: false, bool returnPartialData: false, String referenceKey: '\$ref'}) Map<String, dynamic>
Denormalizes data for a given query [...]
normalizeFragment({void write(String dataId, Map<String, dynamic> value), Map<String, dynamic> read(String dataId), DocumentNode document, Map<String, dynamic> idFields, Map<String, dynamic> data, String fragmentName, Map<String, dynamic> variables, Map<String, TypePolicy> typePolicies, DataIdResolver dataIdFromObject, bool addTypename: false, String referenceKey: '\$ref'}) → void
Normalizes data for a given fragment [...]
normalizeOperation({void write(String dataId, Map<String, dynamic> value), Map<String, dynamic> read(String dataId), DocumentNode document, Map<String, dynamic> data, String operationName, Map<String, dynamic> variables: const {}, Map<String, TypePolicy> typePolicies: const {}, DataIdResolver dataIdFromObject, bool addTypename: false, String referenceKey: '\$ref'}) → void
Normalizes data for a given query [...]

Typedefs

FieldMergeFunction<TExisting, TIncoming>(TExisting existing, TIncoming incoming, FieldFunctionOptions options) → TExisting
FieldReadFunction<TExisting, TReadResult>(TExisting existing, FieldFunctionOptions options) → TReadResult

Exceptions / Errors

MissingKeyFieldException
PartialDataException