ConnectionMetadataGenerator
A MetadataGenerator that generates metadata for Relay connection types. Collaborates with ConnectionRecordMerger to merge pages of a connection.
Either pageInfo.startCursor and pageInfo.endCursor, or edges.cursor must be present in the selection.
Functions
Link copied to clipboard
open override fun metadataForObject(obj: ApolloJsonElement?, context: MetadataGeneratorContext): Map<String, ApolloJsonElement?>
Returns metadata for the given object. This is called for every field in the response, during normalization.