IrOperations
@Serializable
Intermediate representation (IR)
Compared to the GraphQL AST, the IR:
Transforms com.apollographql.apollo.ast.GQLField into IrProperty and IrModel
moves @include/@skip directives on inline fragments and object fields to their children selections
interprets @deprecated directives
coerces argument values and resolves defaultValue
infers fragment variables
registers used types and fragments
more generally removes all references to the GraphQL AST and "embeds" type definitions/field definitions
Additional notes:
Constructors
Link copied to clipboard
constructor(operations: List<IrOperation>, fragments: List<IrFragmentDefinition>, usedCoordinates: UsedCoordinates, flattenModels: Boolean, decapitalizeFields: Boolean, codegenModels: String, fragmentDefinitions: List<@Serializable(with = GQLFragmentDefinitionSerializer::class) GQLFragmentDefinition>)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fragmentDefinitions: List<@Serializable(with = GQLFragmentDefinitionSerializer::class) GQLFragmentDefinition>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard