graph

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEpisode

func LoadEpisode(ctx context.Context, key string) (interface{}, error)

LoadEpisode load a show

func LoadShow

func LoadShow(ctx context.Context, key string) (interface{}, error)

LoadShow load a show

Types

type Resolver

type Resolver struct {
	ShowLoader    *dataloader.Loader
	EpisodeLoader *dataloader.Loader
}

Resolver holds the loaders

func CreateResolver

func CreateResolver() *Resolver

CreateResolver returns a resolver for loading shows and episodes

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