Documentation
¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func UnmarshalCreateOrgMembershipInput(ctx context.Context, raw any) (ent.CreateOrgMembershipInput, error)
- func UnmarshalCreateOrganizationInput(ctx context.Context, raw any) (ent.CreateOrganizationInput, error)
- func UnmarshalOrgMembershipWhereInput(ctx context.Context, raw any) (ent.OrgMembershipWhereInput, error)
- func UnmarshalOrganizationWhereInput(ctx context.Context, raw any) (ent.OrganizationWhereInput, error)
- func UnmarshalUpdateOrgMembershipInput(ctx context.Context, raw any) (ent.UpdateOrgMembershipInput, error)
- func UnmarshalUpdateOrganizationInput(ctx context.Context, raw any) (ent.UpdateOrganizationInput, error)
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type QueryResolver
- type ResolverRoot
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 Config ¶
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}