Package-level declarations
Types
A collection of cache headers that Apollo's implementations of NormalizedCache respect.
A cache resolver that raises a cache miss if the field's received date is older than its max age (configurable via maxAgeProvider) or if its expiration date has passed.
A key/value collection which is sent with Record from a Operation to the NormalizedCache.
An CacheKeyGenerator is responsible for finding an id for a given object
The context in which an object is normalized.
A CacheResolver that resolves objects and list of objects and falls back to the default resolver for scalar fields. It is intended to simplify the usage of CacheResolver when no special handling is needed for scalar fields.
Controls how fields are resolved from the cache.
A FieldKeyGenerator that generates field keys by excluding Relay connection types pagination arguments.
A MetadataGenerator that generates metadata for Relay connection types. Collaborates with ConnectionRecordMerger to merge pages of a connection.
A cache resolver that uses the parent to resolve fields.
An EmbeddedFieldsProvider that returns the fields specified by the @typePolicy(embeddedFields: "...")
directive.
A FieldKeyGenerator that returns the field name with its arguments, excluding pagination arguments defined with the @fieldPolicy(forField: "...", paginationArgs: "...")
directive.
A RecordMerger that merges fields by replacing them with the incoming fields.
A context passed to EmbeddedFieldsProvider.getEmbeddedFields.
A provider for fields whose value should be embedded in their Record, rather than being dereferenced during normalization.
Default MetadataGenerator that returns empty metadata.
Context passed to the FieldKeyGenerator.getFieldKey method.
A generator for field keys.
A cache resolver that uses @fieldPolicy
annotations to resolve fields and delegates to DefaultCacheResolver otherwise
A convenience implementation of RecordMerger that simplifies the merging of Records by delegating to a FieldMerger.
A provider that returns a single max age for all types.
A CacheKeyGenerator that uses the given id fields to compute the cache key. If the id field(s) is/are missing, the object is considered to not have an id.
A simple CacheKeyResolver that uses the id/ids argument, if present, to compute the cache key. The name of the id arguments can be provided (by default "id" for objects and "ids" for lists). If several names are provided, the first present one is used. Only one level of list is supported - implement CacheResolver if you need arbitrary nested lists of objects.
A generator for arbitrary metadata associated with objects. For example, information about pagination can later be used to merge pages (see RecordMerger).
Additional context passed to the MetadataGenerator.metadataForObject method.
A provider of Record for reading requests from cache.
A Factory used to construct an instance of a NormalizedCache configured with the custom scalar adapters set in ApolloClient.Builder#addCustomScalarAdapter(ScalarType, CustomScalarAdapter).
A normalized entry that corresponds to a response object. Object fields are stored if they are a GraphQL Scalars. If a field is a GraphQL Object a CacheKey will be stored instead.
A merger that merges incoming Records from the network with existing ones in the cache.
A typealias for a type-unsafe Kotlin representation of a Record value. This typealias is mainly for internal documentation purposes and low-level manipulations and should generally be avoided in application code.
A provider that returns a max age based on schema coordinates. The given coordinates must be object/interface/union (e.g. MyType
) or field (e.g. MyType.myField
) coordinates.
A CacheKeyGenerator that uses the @typePolicy
directive to compute the id
Properties
A RecordMerger that merges lists in Relay connection types.