Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// Basic connector
*components.Connector
// Require authenticated client
common.RequireAuthenticatedClient
// Supported operations
components.SchemaProvider
components.Reader
components.Writer
}
func NewConnector ¶
func NewConnector(params common.ConnectorParams) (*Connector, error)
type EnumValue ¶
type EnumValue struct {
Name string `json:"name"`
}
EnumValue represents a possible value for an enum type.
type GraphQLError ¶
type GraphQLError struct {
Message string `json:"message"`
Locations []GraphQLErrorLocation `json:"locations,omitempty"`
Path []string `json:"path,omitempty"`
Extensions map[string]any `json:"extensions,omitempty"`
}
GraphQLError represents an error in the GraphQL response.
type GraphQLErrorLocation ¶
GraphQLErrorLocation represents the location of an error in a GraphQL query.
type MetadataResponse ¶
type MetadataResponse struct {
Data struct {
Type TypeMetadata `json:"__type"`
} `json:"data"`
}
MetadataResponse represents the response structure for metadata queries.
type OfTypeInfo ¶
type OfTypeInfo struct {
Name string `json:"name"`
Kind TypeKind `json:"kind"`
OfType *OfTypeInfo `json:"ofType"`
EnumValues []EnumValue `json:"enumValues"`
}
OfTypeInfo represents the nested type information for wrapped types.
type ResponseError ¶
type ResponseError struct {
Errors []GraphQLError `json:"errors,omitempty"`
}
ResponseError represents the error structure in GraphQL responses.
func (ResponseError) CombineErr ¶
func (r ResponseError) CombineErr(base error) error
type TypeInfo ¶
type TypeInfo struct {
Name string `json:"name"`
Kind TypeKind `json:"kind"`
OfType *OfTypeInfo `json:"ofType"`
EnumValues []EnumValue `json:"enumValues"`
}
TypeInfo represents the type information in the GraphQL schema.
type TypeMetadata ¶
TypeMetadata represents the type metadata in the GraphQL schema.
Click to show internal directories.
Click to hide internal directories.