IrFieldInfo

@Serializable
data class IrFieldInfo(val responseName: String, val type: IrType, val gqlType: GQLType?, val description: String?, val deprecationReason: String?, val optInFeature: String?)

Information about a field that is going to be turned into an IrProperty. This merges fields and replaces directives by things that are easier to use from codegen (description, deprecation, etc...)

type can be used to be resolved to a model. It is made nullable if this field has an @include or @defer condition

  • For merged fields, IrFieldInfo is the information that is common to all merged fields

  • For synthetic fields, it is constructed by hand

TODO: maybe merge this with IrProperty

Constructors

Link copied to clipboard
constructor(responseName: String, type: IrType, gqlType: GQLType?, description: String?, deprecationReason: String?, optInFeature: String?)

Properties

Link copied to clipboard

from the fieldDefinition directives

Link copied to clipboard

from the fieldDefinition

Link copied to clipboard
@Serializable(with = GQLTypeSerializer::class)
val gqlType: GQLType?

The GraphQL type of the field needed to build the CompiledField or null for synthetic fields

Link copied to clipboard

from the fieldDefinition directives

Link copied to clipboard

The responseName of this field (or synthetic name)

Link copied to clipboard

from the fieldDefinition.