graphql

package
v0.0.0-...-d25cbcd Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchema

func NewSchema(svc service.Service) (*graphql.Schema, error)

NewSchema parses and creates new graphql schema.

func SetupRouter

func SetupRouter(r chi.Router, authenticator auth.Authenticator, svc service.Service) error

SetupRouter setups routes and handlers.

Types

type RootResolver

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

RootResolver defines root resolvers.

func (*RootResolver) AddDeviceForCurrentUser

func (r *RootResolver) AddDeviceForCurrentUser(
	ctx context.Context,
	args struct{ Device deviceInput },
) (*deviceResolver, error)

func (*RootResolver) CurrentUser

func (r *RootResolver) CurrentUser(ctx context.Context) (*userResolver, error)

CurrentUser resolves current user data.

Jump to

Keyboard shortcuts

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