SchemaDefinition

data class SchemaDefinition(objects: List<TypeDef.Object<*>>, queries: List<QueryDef<*>>, scalars: List<TypeDef.Scalar<*>>, mutations: List<MutationDef<*>>, subscriptions: List<SubscriptionDef<*>>, enums: List<TypeDef.Enumeration<*>>, unions: List<TypeDef.Union>, directives: List<Directive.Partial>, inputObjects: List<TypeDef.Input<*>>)

SchemaDefinition represents unstructured schema components

SchemaDefinition does not contain all nodes in schema, only these, which have been directly declared via SchemaBuilder.

SchemaStructure contains full schema tree, with all types

Constructors

SchemaDefinition
Link copied to clipboard
fun SchemaDefinition(objects: List<TypeDef.Object<*>>, queries: List<QueryDef<*>>, scalars: List<TypeDef.Scalar<*>>, mutations: List<MutationDef<*>>, subscriptions: List<SubscriptionDef<*>>, enums: List<TypeDef.Enumeration<*>>, unions: List<TypeDef.Union>, directives: List<Directive.Partial>, inputObjects: List<TypeDef.Input<*>>)

Properties

directives
Link copied to clipboard
val directives: List<Directive.Partial>
enums
Link copied to clipboard
val enums: List<TypeDef.Enumeration<*>>
inputObjects
Link copied to clipboard
val inputObjects: List<TypeDef.Input<*>>
mutations
Link copied to clipboard
val mutations: List<MutationDef<*>>
objects
Link copied to clipboard
val objects: List<TypeDef.Object<*>>
queries
Link copied to clipboard
val queries: List<QueryDef<*>>
scalars
Link copied to clipboard
val scalars: List<TypeDef.Scalar<*>>
subscriptions
Link copied to clipboard
val subscriptions: List<SubscriptionDef<*>>
unions
Link copied to clipboard
val unions: List<TypeDef.Union>