graph

package
v0.0.0-...-757bef6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Query struct {
		GetUserByEmailDomain func(childComplexity int, domain string) int
		GetUsersByEmail      func(childComplexity int, email string) int
		Users                func(childComplexity int) int
	}

	User struct {
		AccID      func(childComplexity int) int
		CreatedAt  func(childComplexity int) int
		Department func(childComplexity int) int
		Email      func(childComplexity int) int
		UserID     func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Users(ctx context.Context) ([]*model.User, error)
	GetUserByEmailDomain(ctx context.Context, domain string) ([]*model.User, error)
	GetUsersByEmail(ctx context.Context, email string) ([]*model.User, error)
}

type Resolver

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

func NewResolver

func NewResolver(db *data.DAO) *Resolver

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver implementation.

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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