graph

package
Version: v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 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,
	interactor *interactor.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) Entity

func (r *Resolver) Entity() generated.EntityResolver

Entity returns generated.EntityResolver implementation.

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.

func (*Resolver) UserProfile added in v0.0.2

func (r *Resolver) UserProfile() generated.UserProfileResolver

UserProfile returns generated.UserProfileResolver implementation.

func (*Resolver) VerifiedIdentifier

func (r *Resolver) VerifiedIdentifier() generated.VerifiedIdentifierResolver

VerifiedIdentifier returns generated.VerifiedIdentifierResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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