generated

package
v0.0.0-...-aa3ac78 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 14 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 ComplexityRoot

type ComplexityRoot struct {
	Comment struct {
		Epics    func(childComplexity int) int
		ID       func(childComplexity int) int
		Projects func(childComplexity int) int
		Text     func(childComplexity int) int
		Users    func(childComplexity int) int
	}

	CommentConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

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

	Epic struct {
		Assignee    func(childComplexity int) int
		Comments    func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Project     func(childComplexity int) int
		Reporter    func(childComplexity int) int
	}

	EpicConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

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

	Event struct {
		Fields func(childComplexity int) int
		ID     func(childComplexity int) int
		Kind   func(childComplexity int) int
		Op     func(childComplexity int) int
	}

	EventField struct {
		NewValue func(childComplexity int) int
		OldValue func(childComplexity int) int
	}

	Mutation struct {
		CreateComment func(childComplexity int, input ent.CreateCommentInput) int
		CreateEpic    func(childComplexity int, input ent.CreateEpicInput) int
		CreateProject func(childComplexity int, input ent.CreateProjectInput) int
		CreateUser    func(childComplexity int, input ent.CreateUserInput) int
	}

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

	Project struct {
		Comments    func(childComplexity int) int
		Description func(childComplexity int) int
		Epics       func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Owner       func(childComplexity int) int
	}

	ProjectConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

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

	Query struct {
		Comments func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.CommentWhereInput) int
		Epics    func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.EpicWhereInput) int
		Node     func(childComplexity int, id int) int
		Nodes    func(childComplexity int, ids []int) int
		Projects func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.ProjectWhereInput) int
		Users    func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.UserWhereInput) int
	}

	Subscription struct {
		Events func(childComplexity int, topic *string) int
	}

	User struct {
		Assignee func(childComplexity int) int
		Comments func(childComplexity int) int
		Email    func(childComplexity int) int
		ID       func(childComplexity int) int
		Name     func(childComplexity int) int
		Owns     func(childComplexity int) int
		Reporter func(childComplexity int) int
		Surname  func(childComplexity int) int
		Username func(childComplexity int) int
	}

	UserConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

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

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateComment(ctx context.Context, input ent.CreateCommentInput) (*ent.Comment, error)
	CreateEpic(ctx context.Context, input ent.CreateEpicInput) (*ent.Epic, error)
	CreateProject(ctx context.Context, input ent.CreateProjectInput) (*ent.Project, error)
	CreateUser(ctx context.Context, input ent.CreateUserInput) (*ent.User, error)
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id int) (ent.Noder, error)
	Nodes(ctx context.Context, ids []int) ([]ent.Noder, error)
	Comments(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.CommentWhereInput) (*ent.CommentConnection, error)
	Epics(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.EpicWhereInput) (*ent.EpicConnection, error)
	Projects(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.ProjectWhereInput) (*ent.ProjectConnection, error)
	Users(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.UserWhereInput) (*ent.UserConnection, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Events(ctx context.Context, topic *string) (<-chan *model.Event, error)
}

Jump to

Keyboard shortcuts

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