graphql

package
v0.0.0-...-738d89c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchema

func NewSchema(opts ...Option) graphql.ExecutableSchema

NewSchema creates a graphql executable schema.

Types

type Option

type Option func(*Resolver)

func WithDeploymentService

func WithDeploymentService(deployment *deployment.Service) Option

WithDeploymentService sets the deployment service on the resolver.

func WithEntClient

func WithEntClient(client *ent.Client) Option

WithEntClient sets the ent client on the resolver.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(opts ...Option) *Resolver

NewResolver creates a new resolver with the given options.

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL