generated

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 13 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 {
	AuthUser struct {
		CreatedAt   func(childComplexity int) int
		DisplayName func(childComplexity int) int
		ID          func(childComplexity int) int
		Image       func(childComplexity int) int
		New         func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	ExistAuthUser struct {
		Exist func(childComplexity int) int
	}

	Invite struct {
		Code      func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Item struct {
		CategoryID func(childComplexity int) int
		CreatedAt  func(childComplexity int) int
		Date       func(childComplexity int) int
		Dislike    func(childComplexity int) int
		ID         func(childComplexity int) int
		Like       func(childComplexity int) int
		Title      func(childComplexity int) int
		UpdatedAt  func(childComplexity int) int
		UserID     func(childComplexity int) int
	}

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

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

	Mutation struct {
		AcceptRelationshipRequest func(childComplexity int, followedID string) int
		CreateAuthUser            func(childComplexity int, input model.NewAuthUser) int
		CreateInvite              func(childComplexity int) int
		CreateItem                func(childComplexity int, input model.NewItem) int
		CreatePushToken           func(childComplexity int, input model.NewPushToken) int
		CreateRelationshipRequest func(childComplexity int, input model.NewRelationshipRequest) int
		CreateUser                func(childComplexity int, input model.NewUser) int
		DeleteItem                func(childComplexity int, input model.DeleteItem) int
		DeleteRelationship        func(childComplexity int, followedID string) int
		DeleteUser                func(childComplexity int) int
		NgRelationshipRequest     func(childComplexity int, followedID string) int
		UpdateInvite              func(childComplexity int) int
		UpdateItem                func(childComplexity int, input model.UpdateItem) int
		UpdateUser                func(childComplexity int, input model.UpdateUser) int
	}

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

	PushToken struct {
		CreatedAt func(childComplexity int) int
		DeviceID  func(childComplexity int) int
		Token     func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Query struct {
		ExistAuthUser        func(childComplexity int) int
		Invite               func(childComplexity int) int
		InviteByCode         func(childComplexity int, code string) int
		Item                 func(childComplexity int, id string) int
		ItemsByDate          func(childComplexity int, date time.Time) int
		ItemsInDate          func(childComplexity int, date time.Time) int
		ItemsInPeriod        func(childComplexity int, input model.InputItemsInPeriod) int
		RelationshipRequests func(childComplexity int, input model.InputRelationshipRequests) int
		Relationships        func(childComplexity int, input model.InputRelationships) int
		User                 func(childComplexity int) int
	}

	Relationship struct {
		CreatedAt  func(childComplexity int) int
		FollowedID func(childComplexity int) int
		FollowerID func(childComplexity int) int
		ID         func(childComplexity int) int
		UpdatedAt  func(childComplexity int) int
		User       func(childComplexity int, skip *bool) int
	}

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

	RelationshipRequest struct {
		CreatedAt  func(childComplexity int) int
		FollowedID func(childComplexity int) int
		FollowerID func(childComplexity int) int
		ID         func(childComplexity int) int
		Status     func(childComplexity int) int
		UpdatedAt  func(childComplexity int) int
		User       func(childComplexity int, skip *bool) int
	}

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

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

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

	User struct {
		CreatedAt   func(childComplexity int) int
		DisplayName func(childComplexity int) int
		ID          func(childComplexity int) int
		Image       func(childComplexity int) int
		UpdatedAt   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 {
	CreateUser(ctx context.Context, input model.NewUser) (*model.User, error)
	CreateAuthUser(ctx context.Context, input model.NewAuthUser) (*model.AuthUser, error)
	UpdateUser(ctx context.Context, input model.UpdateUser) (*model.User, error)
	DeleteUser(ctx context.Context) (*model.User, error)
	CreateItem(ctx context.Context, input model.NewItem) (*model.Item, error)
	UpdateItem(ctx context.Context, input model.UpdateItem) (*model.Item, error)
	DeleteItem(ctx context.Context, input model.DeleteItem) (*model.Item, error)
	CreateInvite(ctx context.Context) (*model.Invite, error)
	UpdateInvite(ctx context.Context) (*model.Invite, error)
	CreateRelationshipRequest(ctx context.Context, input model.NewRelationshipRequest) (*model.RelationshipRequest, error)
	AcceptRelationshipRequest(ctx context.Context, followedID string) (*model.RelationshipRequest, error)
	NgRelationshipRequest(ctx context.Context, followedID string) (*model.RelationshipRequest, error)
	DeleteRelationship(ctx context.Context, followedID string) (*model.Relationship, error)
	CreatePushToken(ctx context.Context, input model.NewPushToken) (*model.PushToken, error)
}

type QueryResolver

type QueryResolver interface {
	User(ctx context.Context) (*model.User, error)
	ExistAuthUser(ctx context.Context) (*model.ExistAuthUser, error)
	Item(ctx context.Context, id string) (*model.Item, error)
	ItemsByDate(ctx context.Context, date time.Time) ([]*model.Item, error)
	ItemsInDate(ctx context.Context, date time.Time) ([]*model.Item, error)
	ItemsInPeriod(ctx context.Context, input model.InputItemsInPeriod) (*model.ItemsInPeriod, error)
	Invite(ctx context.Context) (*model.Invite, error)
	InviteByCode(ctx context.Context, code string) (*model.User, error)
	RelationshipRequests(ctx context.Context, input model.InputRelationshipRequests) (*model.RelationshipRequests, error)
	Relationships(ctx context.Context, input model.InputRelationships) (*model.Relationships, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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