metadataForObject

abstract 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.

The type of the object can be found in context.field.type.

Parameters

obj

the object to generate metadata for.

context

contains the object's field and the variables of the operation execution.