generated

package
v0.0.0-...-58a3b36 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 11 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 ChatRoomResolver

type ChatRoomResolver interface {
	MessagesConnection(ctx context.Context, obj *model.ChatRoom, first *int, after *string) (*model.MessagesConnection, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	ChatRoom struct {
		ID                 func(childComplexity int) int
		MessagesConnection func(childComplexity int, first *int, after *string) int
		Name               func(childComplexity int) int
	}

	Message struct {
		ID   func(childComplexity int) int
		Text func(childComplexity int) int
	}

	MessagesConnection struct {
		Edges    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	MessagesEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor   func(childComplexity int) int
		HasNextPage func(childComplexity int) int
		StartCursor func(childComplexity int) int
	}

	Query struct {
		ChatRoom func(childComplexity int, id string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	ChatRoom(ctx context.Context, id string) (*model.ChatRoom, error)
}

type ResolverRoot

type ResolverRoot interface {
	ChatRoom() ChatRoomResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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