Documentation
¶
Overview ¶
introspection implements the spec defined in https://github.com/facebook/graphql/blob/master/spec/Section%204%20--%20Introspection.md#schema-introspection
Index ¶
Constants ¶
View Source
const Query = `` /* 1436-byte string literal not displayed */
https://github.com/graphql/graphql-js/blob/main/src/utilities/getIntrospectionQuery.js
Variables ¶
View Source
var ErrNotFoundTypes = errors.New("not found types")
Functions ¶
This section is empty.
Types ¶
type Arg ¶
type Directive ¶ added in v0.0.4
type EnumValue ¶
type Field ¶
type InputValue ¶
type InputValue struct {
Name string `json:"name"`
Description string `json:"description"`
Type *Type `json:"type"`
DefaultValue *string `json:"defaultValue"`
IsDeprecated bool `json:"isDeprecated"`
DeprecationReason string `json:"deprecationReason"`
}
func (*InputValue) String ¶
func (i *InputValue) String() string
type OperationType ¶
type Schema ¶
type Schema struct {
QueryType *OperationType `json:"queryType"`
MutationType *OperationType `json:"mutationType"`
SubscriptionType *OperationType `json:"subscriptionType"`
Types []*Types `json:"types"`
Directives []*Directive `json:"directives"`
// contains filtered or unexported fields
}
func (*Schema) UnmarshalJSON ¶ added in v0.0.2
type Type ¶
type Type struct {
Kind TypeKind `json:"kind"`
Name *string `json:"name"`
OfType *Type `json:"ofType"`
}
func (*Type) UnderlyingKind ¶
func (*Type) UnderlyingName ¶
type Types ¶
type Types struct {
Kind TypeKind `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Fields []*Field `json:"fields"`
InputFields []*InputValue `json:"inputFields"`
Interfaces []*Type `json:"interfaces"`
EnumValues []*EnumValue `json:"enumValues"`
PossibleTypes []*Type `json:"possibleTypes"`
}
func (*Types) IsOperationType ¶
func (*Types) UnmarshalJSON ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.