IrModel

@Serializable
data class IrModel(val modelName: String, val id: String, val typeSet: TypeSet, val properties: List<IrProperty>, val possibleTypes: List<String>, val accessors: List<IrAccessor>, val implements: List<String>, val modelGroups: List<IrModelGroup>, val isInterface: Boolean, val isFallback: Boolean)

A class or interface representing a GraphQL object field

Monomorphic fields will always be represented by a class while polymorphic fields will involve interfaces

Constructors

Link copied to clipboard
constructor(modelName: String, id: String, typeSet: TypeSet, properties: List<IrProperty>, possibleTypes: List<String>, accessors: List<IrAccessor>, implements: List<String>, modelGroups: List<IrModelGroup>, isInterface: Boolean, isFallback: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String

The path to this field. See IrModelType for more details

Link copied to clipboard

A list of paths to interfaces that the model implements

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Nested models. Might be empty if the models are flattened

Link copied to clipboard
Link copied to clipboard

The possible types Used by the polymorphic adapter to generate the when statement that chooses the concrete adapter to delegate to

Link copied to clipboard
Link copied to clipboard

The typeSet of this model. Used by the adapters for ordering/making the code look nice but has no runtime impact