transform
abstract fun transform(schema: Schema, document: GQLDocument, extraFragmentDefinitions: List<GQLFragmentDefinition>): GQLDocument
Transforms the given document.
transform is called before any validation. Implementation must be robust to invalid fragments, operations and non-executable definitions. transform is called after any processing done by the Apollo compiler such as adding __typename
.
Parameters
schema
the schema
document
the document containing all the operations and fragments defined in this compilation unit.
extraFragmentDefinitions
extra fragment definitions from other compilation units.