Documentation ¶
Index ¶
- Variables
- func RelayIDFromObject(object any, info graphql.ResolveInfo, ctx context.Context) (string, error)
- type Arg
- type Args
- type Config
- type Field
- type FieldMiddlewareFn
- type FieldResolver
- type Fields
- type Handler
- type HandlerBody
- type HandlerOption
- type IDFromObjectFn
- type Input
- type Modifier
- type Output
- type ResolveParams
- type Scalar
- type Schema
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Boolean = FromGraphqlScalar(graphql.Boolean)
View Source
var DateTime = FromGraphqlScalar(graphql.DateTime)
View Source
var Float = FromGraphqlScalar(graphql.Float)
View Source
var ID = FromGraphqlScalar(graphql.ID)
View Source
var Int = FromGraphqlScalar(graphql.Int)
View Source
var String = FromGraphqlScalar(graphql.String)
Functions ¶
func RelayIDFromObject ¶
Types ¶
type Config ¶
type Config struct {
IDFromObject IDFromObjectFn
}
type Field ¶
type Field struct { Type Output Description string Args Args Resolve FieldResolver Middlewares []FieldMiddlewareFn }
type FieldMiddlewareFn ¶
type FieldMiddlewareFn func(next FieldResolver) FieldResolver
type FieldResolver ¶
type FieldResolver func(p ResolveParams) (any, error)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(schema Schema, opts ...HandlerOption) *Handler
type HandlerBody ¶
type HandlerOption ¶
type HandlerOption func(h *Handler)
func WithExplorer ¶
func WithExplorer(explorer explorer.Explorer) HandlerOption
type IDFromObjectFn ¶
type ResolveParams ¶
type ResolveParams graphql.ResolveParams
type Scalar ¶
type Scalar struct {
// contains filtered or unexported fields
}
func FromGraphqlScalar ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.