graphapi

package
v0.42.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func UnmarshalCreateOrgMembershipInput added in v0.40.1

func UnmarshalCreateOrgMembershipInput(ctx context.Context, raw any) (ent.CreateOrgMembershipInput, error)

UnmarshalCreateOrgMembershipInput unmarshals raw into the CreateOrgMembershipInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

func UnmarshalCreateOrganizationInput added in v0.40.1

func UnmarshalCreateOrganizationInput(ctx context.Context, raw any) (ent.CreateOrganizationInput, error)

UnmarshalCreateOrganizationInput unmarshals raw into the CreateOrganizationInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

func UnmarshalOrgMembershipWhereInput added in v0.40.1

func UnmarshalOrgMembershipWhereInput(ctx context.Context, raw any) (ent.OrgMembershipWhereInput, error)

UnmarshalOrgMembershipWhereInput unmarshals raw into the OrgMembershipWhereInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

func UnmarshalOrganizationWhereInput added in v0.40.1

func UnmarshalOrganizationWhereInput(ctx context.Context, raw any) (ent.OrganizationWhereInput, error)

UnmarshalOrganizationWhereInput unmarshals raw into the OrganizationWhereInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

func UnmarshalUpdateOrgMembershipInput added in v0.40.1

func UnmarshalUpdateOrgMembershipInput(ctx context.Context, raw any) (ent.UpdateOrgMembershipInput, error)

UnmarshalUpdateOrgMembershipInput unmarshals raw into the UpdateOrgMembershipInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

func UnmarshalUpdateOrganizationInput added in v0.40.1

func UnmarshalUpdateOrganizationInput(ctx context.Context, raw any) (ent.UpdateOrganizationInput, error)

UnmarshalUpdateOrganizationInput unmarshals raw into the UpdateOrganizationInput input type, using the unmarshaler bound to ctx's request. Call it from a resolver to decode an input object that was not passed as a field argument.

ctx must come from a gqlgen request; outside one there is no unmarshaler to use and the returned error says so.

Types

type ComplexityRoot

type ComplexityRoot struct {
	OrgMembership struct {
		ID             func(childComplexity int) int
		Organization   func(childComplexity int) int
		OrganizationID func(childComplexity int) int
		Role           func(childComplexity int) int
		UserID         func(childComplexity int) int
	}

	Organization struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
	}

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

	Query struct {
		Node  func(childComplexity int, id string) int
		Nodes func(childComplexity int, ids []string) int
	}
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id string) (ent.Noder, error)
	Nodes(ctx context.Context, ids []string) ([]ent.Noder, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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