graph

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver sets up a GraphQL resolver with all necessary dependencies

func NewResolver

func NewResolver(
	ctx context.Context,
	usecases usecases.Interactor,
	infra infrastructure.Interactor,
) (*Resolver, error)

NewResolver sets up the dependencies needed for query and mutation resolvers to work

func (*Resolver) CheckUserTokenInContext

func (r *Resolver) CheckUserTokenInContext(ctx context.Context) *auth.Token

CheckUserTokenInContext ensures that the context has a valid Firebase auth token

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