Record
class Record(val key: CacheKey, val fields: Map<String, RecordValue?>, val mutationId: Uuid? = null, val metadata: Map<String, Map<String, ApolloJsonElement?>> = emptyMap(), val sizeInBytes: Int = -1) : Map<String, Any?>
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.
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <D : Executable.Data> DataWithErrors.normalized(executable: Executable<D>, cacheKeyGenerator: CacheKeyGenerator, rootKey: CacheKey = CacheKey.QUERY_ROOT, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, metadataGenerator: MetadataGenerator = EmptyMetadataGenerator, fieldKeyGenerator: FieldKeyGenerator = DefaultFieldKeyGenerator, embeddedFieldsProvider: EmbeddedFieldsProvider = EmptyEmbeddedFieldsProvider, maxAgeProvider: MaxAgeProvider = DefaultMaxAgeProvider): Map<CacheKey, Record>
Normalizes this executable data to a map of Record keyed by Record.key.
Link copied to clipboard
Link copied to clipboard
Returns the list of referenced cache fields
Link copied to clipboard