Documentation
¶
Index ¶
- Constants
- Variables
- func Install[T dagql.Typed](srv *dagql.Server)
- type Directive
- type DirectiveApplication
- type DirectiveApplicationArg
- type DirectiveArg
- type DirectiveLocation
- type EnumValue
- type Field
- type InputValue
- type Response
- type ResponseDirective
- type ResponseEnumValue
- type ResponseField
- type ResponseInputValue
- type ResponseInputValues
- type ResponseNamedType
- type ResponseSchema
- type ResponseSchemaTypes
- type ResponseType
- type ResponseTypeKind
- type ResponseTypeRef
- type Scalar
- type Schema
- func (s *Schema) Description() string
- func (s *Schema) Directives() []*Directive
- func (s *Schema) MutationType() *Type
- func (s *Schema) QueryType() *Type
- func (s *Schema) SubscriptionType() *Type
- func (s *Schema) Type() *ast.Type
- func (s *Schema) TypeDescription() string
- func (s *Schema) Types() []*Type
- type Type
- func (t *Type) Description() string
- func (t *Type) Directives() []*DirectiveApplication
- func (t *Type) EnumValues(includeDeprecated bool) []*EnumValue
- func (t *Type) Fields(includeDeprecated bool) []*Field
- func (t *Type) InputFields() []*InputValue
- func (t *Type) Interfaces() []*Type
- func (t *Type) Kind() string
- func (t *Type) Name() *string
- func (t *Type) OfType() *Type
- func (t *Type) PossibleTypes() []*Type
- func (t *Type) SpecifiedByURL() *string
- func (t *Type) Type() *ast.Type
- func (t *Type) TypeDescription() string
- type TypeKind
Constants ¶
View Source
const ( ResponseTypeKindScalar = ResponseTypeKind("SCALAR") ResponseTypeKindObject = ResponseTypeKind("OBJECT") ResponseTypeKindInterface = ResponseTypeKind("INTERFACE") ResponseTypeKindUnion = ResponseTypeKind("UNION") ResponseTypeKindEnum = ResponseTypeKind("ENUM") ResponseTypeKindInputObject = ResponseTypeKind("INPUT_OBJECT") ResponseTypeKindList = ResponseTypeKind("LIST") ResponseTypeKindNonNull = ResponseTypeKind("NON_NULL") )
View Source
const ( ScalarInt = Scalar("Int") ScalarFloat = Scalar("Float") ScalarString = Scalar("String") ScalarBoolean = Scalar("Boolean") )
Variables ¶
View Source
var DirectiveLocations = dagql.NewEnum[DirectiveLocation](
"QUERY",
"MUTATION",
"SUBSCRIPTION",
"FIELD",
"FRAGMENT_DEFINITION",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT",
"VARIABLE_DEFINITION",
"SCHEMA",
"SCALAR",
"OBJECT",
"FIELD_DEFINITION",
"ARGUMENT_DEFINITION",
"INTERFACE",
"UNION",
"ENUM",
"ENUM_VALUE",
"INPUT_OBJECT",
"INPUT_FIELD_DEFINITION",
)
View Source
var Query string
View Source
var TypeKinds = dagql.NewEnum[TypeKind](
"SCALAR",
"OBJECT",
"INTERFACE",
"UNION",
"ENUM",
"INPUT_OBJECT",
"LIST",
"NON_NULL",
)
Functions ¶
Types ¶
type Directive ¶
type Directive struct { Name string Locations []string Args []*InputValue IsRepeatable bool // contains filtered or unexported fields }
func (*Directive) Description ¶
func (*Directive) TypeDescription ¶
type DirectiveApplication ¶ added in v0.13.7
type DirectiveApplication struct { Name string Args []*DirectiveApplicationArg }
func (*DirectiveApplication) Type ¶ added in v0.13.7
func (d *DirectiveApplication) Type() *ast.Type
func (*DirectiveApplication) TypeDescription ¶ added in v0.13.7
func (d *DirectiveApplication) TypeDescription() string
type DirectiveApplicationArg ¶ added in v0.13.7
func (*DirectiveApplicationArg) Type ¶ added in v0.13.7
func (d *DirectiveApplicationArg) Type() *ast.Type
func (*DirectiveApplicationArg) TypeDescription ¶ added in v0.13.7
func (d *DirectiveApplicationArg) TypeDescription() string
type DirectiveArg ¶ added in v0.13.7
type DirectiveLocation ¶
type DirectiveLocation string
func (DirectiveLocation) Decoder ¶
func (l DirectiveLocation) Decoder() dagql.InputDecoder
func (DirectiveLocation) ToLiteral ¶
func (l DirectiveLocation) ToLiteral() call.Literal
func (DirectiveLocation) Type ¶
func (l DirectiveLocation) Type() *ast.Type
func (DirectiveLocation) TypeDescription ¶
func (l DirectiveLocation) TypeDescription() string
type EnumValue ¶
type EnumValue struct { Name string // contains filtered or unexported fields }
func (*EnumValue) DeprecationReason ¶
func (*EnumValue) Description ¶
func (*EnumValue) Directives ¶ added in v0.13.7
func (e *EnumValue) Directives() []*DirectiveApplication
func (*EnumValue) IsDeprecated ¶
func (*EnumValue) TypeDescription ¶
type Field ¶
type Field struct { Name string Type_ *Type Args []*InputValue // contains filtered or unexported fields }
func (*Field) DeprecationReason ¶
func (*Field) Description ¶
func (*Field) Directives ¶ added in v0.13.7
func (f *Field) Directives() []*DirectiveApplication
func (*Field) IsDeprecated ¶
func (*Field) TypeDescription ¶
type InputValue ¶
type InputValue struct { Name string DefaultValue *string Type_ *Type // contains filtered or unexported fields }
func (*InputValue) DeprecationReason ¶
func (i *InputValue) DeprecationReason() *string
func (*InputValue) Description ¶
func (i *InputValue) Description() string
func (*InputValue) Directives ¶ added in v0.13.7
func (i *InputValue) Directives() []*DirectiveApplication
func (*InputValue) IsDeprecated ¶
func (i *InputValue) IsDeprecated() bool
func (*InputValue) Type ¶
func (i *InputValue) Type() *ast.Type
func (*InputValue) TypeDescription ¶
func (i *InputValue) TypeDescription() string
type Response ¶
type Response struct { Schema *ResponseSchema `json:"__schema"` SchemaVersion string `json:"__schemaVersion"` }
Response is the introspection query response
type ResponseDirective ¶
type ResponseDirective struct { Name string `json:"name"` Args []*DirectiveArg `json:"args"` }
type ResponseEnumValue ¶
type ResponseEnumValue struct { Name string `json:"name"` Description string `json:"description"` IsDeprecated bool `json:"isDeprecated"` DeprecationReason string `json:"deprecationReason"` Directives []ResponseDirective `json:"directives"` }
type ResponseField ¶
type ResponseField struct { Name string `json:"name"` Description string `json:"description"` TypeRef *ResponseTypeRef `json:"type"` Args ResponseInputValues `json:"args"` IsDeprecated bool `json:"isDeprecated"` DeprecationReason string `json:"deprecationReason"` Directives []ResponseDirective `json:"directives"` ParentObject *Type `json:"-"` }
type ResponseInputValue ¶
type ResponseInputValue struct { Name string `json:"name"` Description string `json:"description"` DefaultValue *string `json:"defaultValue"` TypeRef *ResponseTypeRef `json:"type"` IsDeprecated bool `json:"isDeprecated"` DeprecationReason string `json:"deprecationReason"` Directives []ResponseDirective `json:"directives"` }
func (ResponseInputValue) IsOptional ¶ added in v0.13.0
func (v ResponseInputValue) IsOptional() bool
type ResponseInputValues ¶
type ResponseInputValues []ResponseInputValue
func (ResponseInputValues) HasOptionals ¶
func (i ResponseInputValues) HasOptionals() bool
type ResponseNamedType ¶
type ResponseNamedType struct {
Name string `json:"name"`
}
type ResponseSchema ¶
type ResponseSchema struct { QueryType ResponseNamedType `json:"queryType"` MutationType *ResponseNamedType `json:"mutationType,omitempty"` SubscriptionType *ResponseNamedType `json:"subscriptionType,omitempty"` Types ResponseSchemaTypes `json:"types"` // Interfaces ResponseSchemaTypes `json:"interfaces"` // PossibleTypes ResponseSchemaTypes `json:"possibleTypes"` Directives any `json:"directives"` }
type ResponseSchemaTypes ¶
type ResponseSchemaTypes []*ResponseType
func (ResponseSchemaTypes) Get ¶
func (t ResponseSchemaTypes) Get(name string) *ResponseType
type ResponseType ¶
type ResponseType struct { Kind ResponseTypeKind `json:"kind"` Name string `json:"name"` Description string `json:"description,omitempty"` Fields []*ResponseField `json:"fields,omitempty"` InputFields []ResponseInputValue `json:"inputFields,omitempty"` EnumValues []ResponseEnumValue `json:"enumValues,omitempty"` Interfaces ResponseSchemaTypes `json:"interfaces,omitempty"` PossibleTypes ResponseSchemaTypes `json:"possibleTypes,omitempty"` Directives []ResponseDirective `json:"directives"` }
type ResponseTypeKind ¶
type ResponseTypeKind string
type ResponseTypeRef ¶
type ResponseTypeRef struct { Kind ResponseTypeKind `json:"kind"` Name string `json:"name,omitempty"` OfType *ResponseTypeRef `json:"ofType,omitempty"` }
func (ResponseTypeRef) IsList ¶
func (r ResponseTypeRef) IsList() bool
func (ResponseTypeRef) IsObject ¶
func (r ResponseTypeRef) IsObject() bool
func (ResponseTypeRef) IsOptional ¶
func (r ResponseTypeRef) IsOptional() bool
func (ResponseTypeRef) IsScalar ¶
func (r ResponseTypeRef) IsScalar() bool
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func WrapSchema ¶
func (*Schema) Description ¶
func (*Schema) Directives ¶
func (*Schema) MutationType ¶
func (*Schema) SubscriptionType ¶
func (*Schema) TypeDescription ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func WrapTypeFromDef ¶
func WrapTypeFromDef(s *ast.Schema, def *ast.Definition) *Type
func (*Type) Description ¶
func (*Type) Directives ¶ added in v0.13.7
func (t *Type) Directives() []*DirectiveApplication
func (*Type) EnumValues ¶
func (*Type) InputFields ¶
func (t *Type) InputFields() []*InputValue
func (*Type) Interfaces ¶
func (*Type) PossibleTypes ¶
func (*Type) SpecifiedByURL ¶
func (*Type) TypeDescription ¶
type TypeKind ¶
type TypeKind string
func (TypeKind) Decoder ¶
func (k TypeKind) Decoder() dagql.InputDecoder
func (TypeKind) TypeDescription ¶
Click to show internal directories.
Click to hide internal directories.