Schema

@Serializable
data class Schema(    val queryType: IntrospectionSchema.Schema.QueryType,     val mutationType: IntrospectionSchema.Schema.MutationType?,     val subscriptionType: IntrospectionSchema.Schema.SubscriptionType?,     val types: List<IntrospectionSchema.Schema.Type>,     val directives: List<IntrospectionSchema.Schema.Directive> = emptyList())

Constructors

Link copied to clipboard
fun Schema(    queryType: IntrospectionSchema.Schema.QueryType,     mutationType: IntrospectionSchema.Schema.MutationType?,     subscriptionType: IntrospectionSchema.Schema.SubscriptionType?,     types: List<IntrospectionSchema.Schema.Type>)
Link copied to clipboard
fun Schema(    queryType: IntrospectionSchema.Schema.QueryType,     mutationType: IntrospectionSchema.Schema.MutationType?,     subscriptionType: IntrospectionSchema.Schema.SubscriptionType?,     types: List<IntrospectionSchema.Schema.Type>,     directives: List<IntrospectionSchema.Schema.Directive> = emptyList())

Types

Link copied to clipboard
@Serializable
data class Directive(    val name: String,     val description: String?,     val locations: List<IntrospectionSchema.Schema.Directive.DirectiveLocation> = emptyList(),     val args: List<IntrospectionSchema.Schema.Directive.Argument>,     val isRepeatable: Boolean = false)

An introspection directive

Link copied to clipboard
@Serializable
data class Field(    val name: String,     val description: String?,     val isDeprecated: Boolean = false,     val deprecationReason: String?,     val type: IntrospectionSchema.Schema.TypeRef,     val args: List<IntrospectionSchema.Schema.Field.Argument> = emptyList())
Link copied to clipboard
@Serializable
data class InputField(    val name: String,     val description: String?,     val isDeprecated: Boolean = false,     val deprecationReason: String?,     val type: IntrospectionSchema.Schema.TypeRef,     val defaultValue: String?)
Link copied to clipboard
enum Kind : Enum<IntrospectionSchema.Schema.Kind>
Link copied to clipboard
@Serializable
data class MutationType(val name: String)
Link copied to clipboard
@Serializable
data class QueryType(val name: String)
Link copied to clipboard
@Serializable
data class SubscriptionType(val name: String)
Link copied to clipboard
@Serializable
sealed class Type
Link copied to clipboard
@Serializable
data class TypeRef(    val kind: IntrospectionSchema.Schema.Kind,     val name: String? = "",     val ofType: IntrospectionSchema.Schema.TypeRef? = null)

An introspection TypeRef

Properties

Link copied to clipboard
val directives: List<IntrospectionSchema.Schema.Directive>
Link copied to clipboard
val mutationType: IntrospectionSchema.Schema.MutationType?
Link copied to clipboard
val queryType: IntrospectionSchema.Schema.QueryType
Link copied to clipboard
Link copied to clipboard
val types: List<IntrospectionSchema.Schema.Type>

Extensions

Link copied to clipboard