2022-10-09 15:23:52 +02:00
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package generated
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"bytes"
|
|
|
|
|
"context"
|
|
|
|
|
"errors"
|
|
|
|
|
"fmt"
|
|
|
|
|
"strconv"
|
2023-03-08 06:24:17 +00:00
|
|
|
"sync/atomic"
|
2022-10-09 15:23:52 +02:00
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"github.com/99designs/gqlgen/graphql"
|
|
|
|
|
"github.com/99designs/gqlgen/graphql/introspection"
|
|
|
|
|
gqlparser "github.com/vektah/gqlparser/v2"
|
|
|
|
|
"github.com/vektah/gqlparser/v2/ast"
|
2024-03-25 21:46:15 +01:00
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
"gitea.unbound.se/unboundsoftware/schemas/graph/model"
|
2022-10-09 15:23:52 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// region ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
|
|
|
|
|
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
|
2026-02-19 16:31:43 +00:00
|
|
|
return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity}
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
type ResolverRoot interface {
|
|
|
|
|
Mutation() MutationResolver
|
|
|
|
|
Query() QueryResolver
|
2025-11-19 11:29:30 +01:00
|
|
|
Subscription() SubscriptionResolver
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DirectiveRoot struct {
|
2024-12-20 02:56:21 +00:00
|
|
|
Auth func(ctx context.Context, obj any, next graphql.Resolver, user *bool, organization *bool) (res any, err error)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ComplexityRoot struct {
|
2023-04-27 07:09:10 +02:00
|
|
|
APIKey struct {
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
Key func(childComplexity int) int
|
|
|
|
|
Name func(childComplexity int) int
|
|
|
|
|
Organization func(childComplexity int) int
|
|
|
|
|
Publish func(childComplexity int) int
|
|
|
|
|
Read func(childComplexity int) int
|
|
|
|
|
Refs func(childComplexity int) int
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
Mutation struct {
|
2025-11-22 18:37:07 +01:00
|
|
|
AddAPIKey func(childComplexity int, input *model.InputAPIKey) int
|
|
|
|
|
AddOrganization func(childComplexity int, name string) int
|
|
|
|
|
AddUserToOrganization func(childComplexity int, organizationID string, userID string) int
|
|
|
|
|
RemoveAPIKey func(childComplexity int, organizationID string, keyName string) int
|
|
|
|
|
RemoveOrganization func(childComplexity int, organizationID string) int
|
|
|
|
|
UpdateSubGraph func(childComplexity int, input model.InputSubGraph) int
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Organization struct {
|
|
|
|
|
APIKeys func(childComplexity int) int
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
Name func(childComplexity int) int
|
|
|
|
|
Users func(childComplexity int) int
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Query struct {
|
2025-11-22 18:37:07 +01:00
|
|
|
AllOrganizations func(childComplexity int) int
|
|
|
|
|
LatestSchema func(childComplexity int, ref string) int
|
|
|
|
|
Organizations func(childComplexity int) int
|
|
|
|
|
Supergraph func(childComplexity int, ref string, isAfter *string) int
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
SchemaUpdate struct {
|
|
|
|
|
CosmoRouterConfig func(childComplexity int) int
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
Ref func(childComplexity int) int
|
|
|
|
|
SubGraphs func(childComplexity int) int
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
SubGraph struct {
|
|
|
|
|
ChangedAt func(childComplexity int) int
|
|
|
|
|
ChangedBy func(childComplexity int) int
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
Sdl func(childComplexity int) int
|
|
|
|
|
Service func(childComplexity int) int
|
|
|
|
|
URL func(childComplexity int) int
|
|
|
|
|
WsURL func(childComplexity int) int
|
|
|
|
|
}
|
2022-10-14 22:41:56 +02:00
|
|
|
|
|
|
|
|
SubGraphs struct {
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
MinDelaySeconds func(childComplexity int) int
|
2024-03-25 21:46:15 +01:00
|
|
|
Sdl func(childComplexity int) int
|
2022-10-14 22:41:56 +02:00
|
|
|
SubGraphs func(childComplexity int) int
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
Subscription struct {
|
|
|
|
|
SchemaUpdates func(childComplexity int, ref string) int
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
Unchanged struct {
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
MinDelaySeconds func(childComplexity int) int
|
|
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
User struct {
|
|
|
|
|
ID func(childComplexity int) int
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MutationResolver interface {
|
2023-04-27 07:09:10 +02:00
|
|
|
AddOrganization(ctx context.Context, name string) (*model.Organization, error)
|
2025-11-22 18:37:07 +01:00
|
|
|
AddUserToOrganization(ctx context.Context, organizationID string, userID string) (*model.Organization, error)
|
2023-04-27 07:09:10 +02:00
|
|
|
AddAPIKey(ctx context.Context, input *model.InputAPIKey) (*model.APIKey, error)
|
2025-11-22 18:37:07 +01:00
|
|
|
RemoveAPIKey(ctx context.Context, organizationID string, keyName string) (*model.Organization, error)
|
|
|
|
|
RemoveOrganization(ctx context.Context, organizationID string) (bool, error)
|
2022-10-09 15:23:52 +02:00
|
|
|
UpdateSubGraph(ctx context.Context, input model.InputSubGraph) (*model.SubGraph, error)
|
|
|
|
|
}
|
|
|
|
|
type QueryResolver interface {
|
2023-04-27 07:09:10 +02:00
|
|
|
Organizations(ctx context.Context) ([]*model.Organization, error)
|
2025-11-22 18:37:07 +01:00
|
|
|
AllOrganizations(ctx context.Context) ([]*model.Organization, error)
|
2022-10-14 22:41:56 +02:00
|
|
|
Supergraph(ctx context.Context, ref string, isAfter *string) (model.Supergraph, error)
|
2025-11-20 17:02:19 +01:00
|
|
|
LatestSchema(ctx context.Context, ref string) (*model.SchemaUpdate, error)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2025-11-19 11:29:30 +01:00
|
|
|
type SubscriptionResolver interface {
|
|
|
|
|
SchemaUpdates(ctx context.Context, ref string) (<-chan *model.SchemaUpdate, error)
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
func (e *executableSchema) Schema() *ast.Schema {
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.SchemaData != nil {
|
|
|
|
|
return e.SchemaData
|
2023-10-06 06:24:54 +00:00
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
return parsedSchema
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-18 01:54:55 +00:00
|
|
|
func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec := newExecutionContext(nil, e, nil)
|
2022-10-09 15:23:52 +02:00
|
|
|
_ = ec
|
|
|
|
|
switch typeName + "." + field {
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.ID == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.ID(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.key":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Key == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Key(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.name":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Name == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Name(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.organization":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Organization == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Organization(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.publish":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Publish == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Publish(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.read":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Read == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Read(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "APIKey.refs":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.APIKey.Refs == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.APIKey.Refs(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
case "Mutation.addAPIKey":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.AddAPIKey == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-18 01:54:55 +00:00
|
|
|
args, err := ec.field_Mutation_addAPIKey_args(ctx, rawArgs)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.AddAPIKey(childComplexity, args["input"].(*model.InputAPIKey)), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Mutation.addOrganization":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.AddOrganization == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-18 01:54:55 +00:00
|
|
|
args, err := ec.field_Mutation_addOrganization_args(ctx, rawArgs)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.AddOrganization(childComplexity, args["name"].(string)), true
|
2025-11-22 18:37:07 +01:00
|
|
|
case "Mutation.addUserToOrganization":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.AddUserToOrganization == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args, err := ec.field_Mutation_addUserToOrganization_args(ctx, rawArgs)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.AddUserToOrganization(childComplexity, args["organizationId"].(string), args["userId"].(string)), true
|
2025-11-22 18:37:07 +01:00
|
|
|
case "Mutation.removeAPIKey":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.RemoveAPIKey == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args, err := ec.field_Mutation_removeAPIKey_args(ctx, rawArgs)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.RemoveAPIKey(childComplexity, args["organizationId"].(string), args["keyName"].(string)), true
|
2025-11-22 18:37:07 +01:00
|
|
|
case "Mutation.removeOrganization":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.RemoveOrganization == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args, err := ec.field_Mutation_removeOrganization_args(ctx, rawArgs)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.RemoveOrganization(childComplexity, args["organizationId"].(string)), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "Mutation.updateSubGraph":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Mutation.UpdateSubGraph == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-18 01:54:55 +00:00
|
|
|
args, err := ec.field_Mutation_updateSubGraph_args(ctx, rawArgs)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Mutation.UpdateSubGraph(childComplexity, args["input"].(model.InputSubGraph)), true
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Organization.apiKeys":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Organization.APIKeys == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Organization.APIKeys(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Organization.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Organization.ID == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Organization.ID(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Organization.name":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Organization.Name == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Organization.Name(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Organization.users":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Organization.Users == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Organization.Users(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
|
2025-11-22 18:37:07 +01:00
|
|
|
case "Query.allOrganizations":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Query.AllOrganizations == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Query.AllOrganizations(childComplexity), true
|
|
|
|
|
|
2025-11-20 17:02:19 +01:00
|
|
|
case "Query.latestSchema":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Query.LatestSchema == nil {
|
2025-11-20 17:02:19 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args, err := ec.field_Query_latestSchema_args(ctx, rawArgs)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Query.LatestSchema(childComplexity, args["ref"].(string)), true
|
2023-04-27 07:09:10 +02:00
|
|
|
case "Query.organizations":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Query.Organizations == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Query.Organizations(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
case "Query.supergraph":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Query.Supergraph == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-18 01:54:55 +00:00
|
|
|
args, err := ec.field_Query_supergraph_args(ctx, rawArgs)
|
2022-10-14 22:41:56 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Query.Supergraph(childComplexity, args["ref"].(string), args["isAfter"].(*string)), true
|
2022-10-14 22:41:56 +02:00
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
case "SchemaUpdate.cosmoRouterConfig":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SchemaUpdate.CosmoRouterConfig == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SchemaUpdate.CosmoRouterConfig(childComplexity), true
|
2025-11-19 11:29:30 +01:00
|
|
|
case "SchemaUpdate.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SchemaUpdate.ID == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SchemaUpdate.ID(childComplexity), true
|
2025-11-19 11:29:30 +01:00
|
|
|
case "SchemaUpdate.ref":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SchemaUpdate.Ref == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SchemaUpdate.Ref(childComplexity), true
|
2025-11-19 11:29:30 +01:00
|
|
|
case "SchemaUpdate.subGraphs":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SchemaUpdate.SubGraphs == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SchemaUpdate.SubGraphs(childComplexity), true
|
2025-11-19 11:29:30 +01:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.changedAt":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.ChangedAt == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.ChangedAt(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.changedBy":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.ChangedBy == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.ChangedBy(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.ID == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.ID(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.sdl":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.Sdl == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.Sdl(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.service":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.Service == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.Service(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.url":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.URL == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.URL(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
case "SubGraph.wsUrl":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraph.WsURL == nil {
|
2022-10-09 15:23:52 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraph.WsURL(childComplexity), true
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
case "SubGraphs.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraphs.ID == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraphs.ID(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
case "SubGraphs.minDelaySeconds":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraphs.MinDelaySeconds == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraphs.MinDelaySeconds(childComplexity), true
|
2024-03-25 21:46:15 +01:00
|
|
|
case "SubGraphs.sdl":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraphs.Sdl == nil {
|
2024-03-25 21:46:15 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraphs.Sdl(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
case "SubGraphs.subGraphs":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.SubGraphs.SubGraphs == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.SubGraphs.SubGraphs(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
case "Subscription.schemaUpdates":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Subscription.SchemaUpdates == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args, err := ec.field_Subscription_schemaUpdates_args(ctx, rawArgs)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Subscription.SchemaUpdates(childComplexity, args["ref"].(string)), true
|
2025-11-19 11:29:30 +01:00
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
case "Unchanged.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Unchanged.ID == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Unchanged.ID(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
case "Unchanged.minDelaySeconds":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.Unchanged.MinDelaySeconds == nil {
|
2022-10-14 22:41:56 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.Unchanged.MinDelaySeconds(childComplexity), true
|
2022-10-14 22:41:56 +02:00
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
case "User.id":
|
2026-02-19 16:31:43 +00:00
|
|
|
if e.ComplexityRoot.User.ID == nil {
|
2023-04-27 07:09:10 +02:00
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
return e.ComplexityRoot.User.ID(childComplexity), true
|
2023-04-27 07:09:10 +02:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
|
2024-11-10 14:29:58 +01:00
|
|
|
opCtx := graphql.GetOperationContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult))
|
2022-10-09 15:23:52 +02:00
|
|
|
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
|
2023-04-27 07:09:10 +02:00
|
|
|
ec.unmarshalInputInputAPIKey,
|
2022-10-09 15:23:52 +02:00
|
|
|
ec.unmarshalInputInputSubGraph,
|
|
|
|
|
)
|
|
|
|
|
first := true
|
|
|
|
|
|
2024-11-10 14:29:58 +01:00
|
|
|
switch opCtx.Operation.Operation {
|
2022-10-09 15:23:52 +02:00
|
|
|
case ast.Query:
|
|
|
|
|
return func(ctx context.Context) *graphql.Response {
|
2023-06-07 06:25:20 +00:00
|
|
|
var response graphql.Response
|
|
|
|
|
var data graphql.Marshaler
|
|
|
|
|
if first {
|
|
|
|
|
first = false
|
|
|
|
|
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
2024-11-10 14:29:58 +01:00
|
|
|
data = ec._Query(ctx, opCtx.Operation.SelectionSet)
|
2023-06-07 06:25:20 +00:00
|
|
|
} else {
|
2026-02-19 16:31:43 +00:00
|
|
|
if atomic.LoadInt32(&ec.PendingDeferred) > 0 {
|
|
|
|
|
result := <-ec.DeferredResults
|
|
|
|
|
atomic.AddInt32(&ec.PendingDeferred, -1)
|
2023-06-07 06:25:20 +00:00
|
|
|
data = result.Result
|
|
|
|
|
response.Path = result.Path
|
|
|
|
|
response.Label = result.Label
|
|
|
|
|
response.Errors = result.Errors
|
|
|
|
|
} else {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
|
data.MarshalGQL(&buf)
|
2023-06-07 06:25:20 +00:00
|
|
|
response.Data = buf.Bytes()
|
2026-02-19 16:31:43 +00:00
|
|
|
if atomic.LoadInt32(&ec.Deferred) > 0 {
|
|
|
|
|
hasNext := atomic.LoadInt32(&ec.PendingDeferred) > 0
|
2023-06-07 06:25:20 +00:00
|
|
|
response.HasNext = &hasNext
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
return &response
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case ast.Mutation:
|
|
|
|
|
return func(ctx context.Context) *graphql.Response {
|
|
|
|
|
if !first {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
first = false
|
|
|
|
|
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
2024-11-10 14:29:58 +01:00
|
|
|
data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
var buf bytes.Buffer
|
|
|
|
|
data.MarshalGQL(&buf)
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
return &graphql.Response{
|
|
|
|
|
Data: buf.Bytes(),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case ast.Subscription:
|
|
|
|
|
next := ec._Subscription(ctx, opCtx.Operation.SelectionSet)
|
|
|
|
|
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
|
return func(ctx context.Context) *graphql.Response {
|
|
|
|
|
buf.Reset()
|
|
|
|
|
data := next(ctx)
|
|
|
|
|
|
|
|
|
|
if data == nil {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
data.MarshalGQL(&buf)
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return &graphql.Response{
|
|
|
|
|
Data: buf.Bytes(),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type executionContext struct {
|
2026-02-19 16:31:43 +00:00
|
|
|
*graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
func newExecutionContext(
|
|
|
|
|
opCtx *graphql.OperationContext,
|
|
|
|
|
execSchema *executableSchema,
|
|
|
|
|
deferredResults chan graphql.DeferredResult,
|
|
|
|
|
) executionContext {
|
|
|
|
|
return executionContext{
|
|
|
|
|
ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot](
|
|
|
|
|
opCtx,
|
|
|
|
|
(*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema),
|
|
|
|
|
parsedSchema,
|
|
|
|
|
deferredResults,
|
|
|
|
|
),
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var sources = []*ast.Source{
|
|
|
|
|
{Name: "../schema.graphqls", Input: `type Query {
|
2023-04-27 07:09:10 +02:00
|
|
|
organizations: [Organization!]! @auth(user: true)
|
2025-11-22 18:37:07 +01:00
|
|
|
allOrganizations: [Organization!]! @auth(user: true)
|
|
|
|
|
supergraph(ref: String!, isAfter: String): Supergraph! @auth(user: true, organization: true)
|
|
|
|
|
latestSchema(ref: String!): SchemaUpdate! @auth(user: true, organization: true)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Mutation {
|
2023-04-27 07:09:10 +02:00
|
|
|
addOrganization(name: String!): Organization! @auth(user: true)
|
2025-11-22 18:37:07 +01:00
|
|
|
addUserToOrganization(organizationId: ID!, userId: String!): Organization! @auth(user: true)
|
2023-04-27 07:09:10 +02:00
|
|
|
addAPIKey(input: InputAPIKey): APIKey! @auth(user: true)
|
2025-11-22 18:37:07 +01:00
|
|
|
removeAPIKey(organizationId: ID!, keyName: String!): Organization! @auth(user: true)
|
|
|
|
|
removeOrganization(organizationId: ID!): Boolean! @auth(user: true)
|
2023-04-27 07:09:10 +02:00
|
|
|
updateSubGraph(input: InputSubGraph!): SubGraph! @auth(organization: true)
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
type Subscription {
|
|
|
|
|
schemaUpdates(ref: String!): SchemaUpdate! @auth(organization: true)
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
type Organization {
|
|
|
|
|
id: ID!
|
|
|
|
|
name: String!
|
|
|
|
|
users: [User!]!
|
|
|
|
|
apiKeys: [APIKey!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type User {
|
|
|
|
|
id: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type APIKey {
|
|
|
|
|
id: ID!
|
|
|
|
|
name: String!
|
|
|
|
|
key: String
|
|
|
|
|
organization: Organization!
|
|
|
|
|
refs: [String!]!
|
|
|
|
|
read: Boolean!
|
|
|
|
|
publish: Boolean!
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
union Supergraph = Unchanged | SubGraphs
|
|
|
|
|
|
|
|
|
|
type Unchanged {
|
|
|
|
|
id: ID!
|
|
|
|
|
minDelaySeconds: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SubGraphs {
|
|
|
|
|
id: ID!
|
|
|
|
|
minDelaySeconds: Int!
|
2024-03-25 21:46:15 +01:00
|
|
|
sdl: String!
|
2022-10-14 22:41:56 +02:00
|
|
|
subGraphs: [SubGraph!]!
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
type SubGraph {
|
|
|
|
|
id: ID!
|
|
|
|
|
service: String!
|
|
|
|
|
url: String
|
|
|
|
|
wsUrl: String
|
|
|
|
|
sdl: String!
|
|
|
|
|
changedBy: String!
|
|
|
|
|
changedAt: Time!
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
type SchemaUpdate {
|
|
|
|
|
ref: String!
|
|
|
|
|
id: ID!
|
|
|
|
|
subGraphs: [SubGraph!]!
|
|
|
|
|
cosmoRouterConfig: String
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
input InputAPIKey {
|
|
|
|
|
name: String!
|
|
|
|
|
organizationId: ID!
|
|
|
|
|
refs: [String!]!
|
|
|
|
|
read: Boolean!
|
|
|
|
|
publish: Boolean!
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
input InputSubGraph {
|
|
|
|
|
ref: String!
|
|
|
|
|
service: String!
|
|
|
|
|
url: String
|
|
|
|
|
wsUrl: String
|
|
|
|
|
sdl: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scalar Time
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
directive @auth(user: Boolean, organization: Boolean) on FIELD_DEFINITION
|
2022-10-09 15:23:52 +02:00
|
|
|
`, BuiltIn: false},
|
|
|
|
|
}
|
|
|
|
|
var parsedSchema = gqlparser.MustLoadSchema(sources...)
|
|
|
|
|
|
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// region ***************************** args.gotpl *****************************
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) dir_auth_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "user", ec.unmarshalOBoolean2ᚖbool)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
args["user"] = arg0
|
2025-07-28 12:21:43 +02:00
|
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "organization", ec.unmarshalOBoolean2ᚖbool)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
args["organization"] = arg1
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field_Mutation_addAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2026-01-17 22:53:46 +01:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalOInputAPIKey2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐInputAPIKey)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
args["input"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field_Mutation_addOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
args["name"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-22 18:37:07 +01:00
|
|
|
func (ec *executionContext) field_Mutation_addUserToOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
|
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "organizationId", ec.unmarshalNID2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["organizationId"] = arg0
|
|
|
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "userId", ec.unmarshalNString2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["userId"] = arg1
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) field_Mutation_removeAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
|
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "organizationId", ec.unmarshalNID2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["organizationId"] = arg0
|
|
|
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "keyName", ec.unmarshalNString2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["keyName"] = arg1
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) field_Mutation_removeOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
|
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "organizationId", ec.unmarshalNID2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["organizationId"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field_Mutation_updateSubGraph_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2026-01-17 22:53:46 +01:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNInputSubGraph2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐInputSubGraph)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
args["input"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
args["name"] = arg0
|
2022-10-09 15:23:52 +02:00
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-20 17:02:19 +01:00
|
|
|
func (ec *executionContext) field_Query_latestSchema_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
|
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ref", ec.unmarshalNString2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["ref"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field_Query_supergraph_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ref", ec.unmarshalNString2string)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
args["ref"] = arg0
|
2025-07-28 12:21:43 +02:00
|
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "isAfter", ec.unmarshalOString2ᚖstring)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
args["isAfter"] = arg1
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
func (ec *executionContext) field_Subscription_schemaUpdates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
|
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ref", ec.unmarshalNString2string)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["ref"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-28 14:57:10 +00:00
|
|
|
func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
2025-01-28 14:57:10 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["includeDeprecated"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
|
|
var err error
|
|
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
2025-01-28 14:57:10 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
args["includeDeprecated"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
args["includeDeprecated"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
2024-12-20 02:56:21 +00:00
|
|
|
args := map[string]any{}
|
2025-07-28 12:21:43 +02:00
|
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
|
2024-09-13 16:53:19 +00:00
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
args["includeDeprecated"] = arg0
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion ***************************** args.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
// region ************************** directives.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// endregion ************************** directives.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// region **************************** field.gotpl *****************************
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _APIKey_id(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_name(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_key(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_key,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Key, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_organization(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_organization,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Organization, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_refs(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_refs,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Refs, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2ᚕstringᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_refs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_read(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_read,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Read, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_read(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_publish(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_APIKey_publish,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Publish, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_APIKey_publish(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "APIKey",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Mutation_addOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_addOrganization,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2025-09-17 21:19:09 +02:00
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().AddOrganization(ctx, fc.Args["name"].(string))
|
2025-09-17 21:19:09 +02:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
2025-09-15 07:19:10 +02:00
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-09-15 07:19:10 +02:00
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-09-15 07:19:10 +02:00
|
|
|
}
|
2024-09-13 16:53:19 +00:00
|
|
|
|
2025-09-17 21:19:09 +02:00
|
|
|
next = directive1
|
|
|
|
|
return next
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_addOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_addOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-22 18:37:07 +01:00
|
|
|
func (ec *executionContext) _Mutation_addUserToOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_addUserToOrganization,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().AddUserToOrganization(ctx, fc.Args["organizationId"].(string), fc.Args["userId"].(string))
|
2025-11-22 18:37:07 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-11-22 18:37:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization,
|
2025-11-22 18:37:07 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_addUserToOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_addUserToOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _Mutation_addAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_addAPIKey,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2025-09-17 21:19:09 +02:00
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().AddAPIKey(ctx, fc.Args["input"].(*model.InputAPIKey))
|
2025-09-17 21:19:09 +02:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
2025-09-15 07:19:10 +02:00
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.APIKey
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-09-15 07:19:10 +02:00
|
|
|
var zeroVal *model.APIKey
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-09-15 07:19:10 +02:00
|
|
|
}
|
2024-09-13 16:53:19 +00:00
|
|
|
|
2025-09-17 21:19:09 +02:00
|
|
|
next = directive1
|
|
|
|
|
return next
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNAPIKey2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKey,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_addAPIKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_APIKey_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_APIKey_name(ctx, field)
|
|
|
|
|
case "key":
|
|
|
|
|
return ec.fieldContext_APIKey_key(ctx, field)
|
|
|
|
|
case "organization":
|
|
|
|
|
return ec.fieldContext_APIKey_organization(ctx, field)
|
|
|
|
|
case "refs":
|
|
|
|
|
return ec.fieldContext_APIKey_refs(ctx, field)
|
|
|
|
|
case "read":
|
|
|
|
|
return ec.fieldContext_APIKey_read(ctx, field)
|
|
|
|
|
case "publish":
|
|
|
|
|
return ec.fieldContext_APIKey_publish(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type APIKey", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_addAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-22 18:37:07 +01:00
|
|
|
func (ec *executionContext) _Mutation_removeAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_removeAPIKey,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().RemoveAPIKey(ctx, fc.Args["organizationId"].(string), fc.Args["keyName"].(string))
|
2025-11-22 18:37:07 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
var zeroVal *model.Organization
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-11-22 18:37:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization,
|
2025-11-22 18:37:07 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_removeAPIKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_removeAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Mutation_removeOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_removeOrganization,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().RemoveOrganization(ctx, fc.Args["organizationId"].(string))
|
2025-11-22 18:37:07 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal bool
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
var zeroVal bool
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-11-22 18:37:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_removeOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_removeOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _Mutation_updateSubGraph(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Mutation_updateSubGraph,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2025-09-17 21:19:09 +02:00
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Mutation().UpdateSubGraph(ctx, fc.Args["input"].(model.InputSubGraph))
|
2025-09-17 21:19:09 +02:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
2025-09-15 07:19:10 +02:00
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
organization, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.SubGraph
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-09-15 07:19:10 +02:00
|
|
|
var zeroVal *model.SubGraph
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, nil, organization)
|
2025-09-15 07:19:10 +02:00
|
|
|
}
|
2024-09-13 16:53:19 +00:00
|
|
|
|
2025-09-17 21:19:09 +02:00
|
|
|
next = directive1
|
|
|
|
|
return next
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSubGraph2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraph,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateSubGraph(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_SubGraph_id(ctx, field)
|
|
|
|
|
case "service":
|
|
|
|
|
return ec.fieldContext_SubGraph_service(ctx, field)
|
|
|
|
|
case "url":
|
|
|
|
|
return ec.fieldContext_SubGraph_url(ctx, field)
|
|
|
|
|
case "wsUrl":
|
|
|
|
|
return ec.fieldContext_SubGraph_wsUrl(ctx, field)
|
|
|
|
|
case "sdl":
|
|
|
|
|
return ec.fieldContext_SubGraph_sdl(ctx, field)
|
|
|
|
|
case "changedBy":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedBy(ctx, field)
|
|
|
|
|
case "changedAt":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedAt(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type SubGraph", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Mutation_updateSubGraph_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *model.Organization) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Organization_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Organization",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *model.Organization) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Organization_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Organization",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *model.Organization) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Organization_users,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Users, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNUser2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐUserᚄ,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Organization_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Organization",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_User_id(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Organization_apiKeys(ctx context.Context, field graphql.CollectedField, obj *model.Organization) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Organization_apiKeys,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.APIKeys, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNAPIKey2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKeyᚄ,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Organization_apiKeys(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
2023-04-27 07:09:10 +02:00
|
|
|
Object: "Organization",
|
2022-10-09 15:23:52 +02:00
|
|
|
Field: field,
|
2023-04-27 07:09:10 +02:00
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
2022-10-09 15:23:52 +02:00
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
2023-04-27 07:09:10 +02:00
|
|
|
return ec.fieldContext_APIKey_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_APIKey_name(ctx, field)
|
|
|
|
|
case "key":
|
|
|
|
|
return ec.fieldContext_APIKey_key(ctx, field)
|
|
|
|
|
case "organization":
|
|
|
|
|
return ec.fieldContext_APIKey_organization(ctx, field)
|
|
|
|
|
case "refs":
|
|
|
|
|
return ec.fieldContext_APIKey_refs(ctx, field)
|
|
|
|
|
case "read":
|
|
|
|
|
return ec.fieldContext_APIKey_read(ctx, field)
|
|
|
|
|
case "publish":
|
|
|
|
|
return ec.fieldContext_APIKey_publish(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
return nil, fmt.Errorf("no field named %q was found under type APIKey", field.Name)
|
2022-10-09 15:23:52 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query_organizations,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Query().Organizations(ctx)
|
2025-09-17 21:19:09 +02:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2025-09-15 07:19:10 +02:00
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal []*model.Organization
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-09-15 07:19:10 +02:00
|
|
|
var zeroVal []*model.Organization
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-09-15 07:19:10 +02:00
|
|
|
}
|
|
|
|
|
|
2025-09-17 21:19:09 +02:00
|
|
|
next = directive1
|
|
|
|
|
return next
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganizationᚄ,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Query_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
2023-04-27 07:09:10 +02:00
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
2022-10-09 15:23:52 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-22 18:37:07 +01:00
|
|
|
func (ec *executionContext) _Query_allOrganizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query_allOrganizations,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Query().AllOrganizations(ctx)
|
2025-11-22 18:37:07 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal []*model.Organization
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-22 18:37:07 +01:00
|
|
|
var zeroVal []*model.Organization
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, nil)
|
2025-11-22 18:37:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNOrganization2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganizationᚄ,
|
2025-11-22 18:37:07 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_allOrganizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
|
|
|
case "users":
|
|
|
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
return ec.fieldContext_Organization_apiKeys(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
func (ec *executionContext) _Query_supergraph(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query_supergraph,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2025-09-17 21:19:09 +02:00
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Query().Supergraph(ctx, fc.Args["ref"].(string), fc.Args["isAfter"].(*string))
|
2025-09-17 21:19:09 +02:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
2024-09-13 16:53:19 +00:00
|
|
|
|
2025-09-15 07:19:10 +02:00
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
2025-11-22 18:37:07 +01:00
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal model.Supergraph
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2025-09-15 07:19:10 +02:00
|
|
|
organization, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal model.Supergraph
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-09-15 07:19:10 +02:00
|
|
|
var zeroVal model.Supergraph
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, organization)
|
2025-09-15 07:19:10 +02:00
|
|
|
}
|
|
|
|
|
|
2025-09-17 21:19:09 +02:00
|
|
|
next = directive1
|
|
|
|
|
return next
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSupergraph2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSupergraph,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_supergraph(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Supergraph does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Query_supergraph_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-20 17:02:19 +01:00
|
|
|
func (ec *executionContext) _Query_latestSchema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query_latestSchema,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Query().LatestSchema(ctx, fc.Args["ref"].(string))
|
2025-11-20 17:02:19 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
2025-11-22 18:37:07 +01:00
|
|
|
user, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.SchemaUpdate
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2025-11-20 17:02:19 +01:00
|
|
|
organization, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.SchemaUpdate
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-20 17:02:19 +01:00
|
|
|
var zeroVal *model.SchemaUpdate
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, user, organization)
|
2025-11-20 17:02:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSchemaUpdate2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSchemaUpdate,
|
2025-11-20 17:02:19 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_latestSchema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "ref":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_ref(ctx, field)
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_id(ctx, field)
|
|
|
|
|
case "subGraphs":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_subGraphs(ctx, field)
|
|
|
|
|
case "cosmoRouterConfig":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_cosmoRouterConfig(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type SchemaUpdate", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Query_latestSchema_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query___type,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.IntrospectType(fc.Args["name"].(string))
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Query___schema,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.IntrospectSchema()
|
2025-09-15 07:19:10 +02:00
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Schema_description(ctx, field)
|
|
|
|
|
case "types":
|
|
|
|
|
return ec.fieldContext___Schema_types(ctx, field)
|
|
|
|
|
case "queryType":
|
|
|
|
|
return ec.fieldContext___Schema_queryType(ctx, field)
|
|
|
|
|
case "mutationType":
|
|
|
|
|
return ec.fieldContext___Schema_mutationType(ctx, field)
|
|
|
|
|
case "subscriptionType":
|
|
|
|
|
return ec.fieldContext___Schema_subscriptionType(ctx, field)
|
|
|
|
|
case "directives":
|
|
|
|
|
return ec.fieldContext___Schema_directives(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
func (ec *executionContext) _SchemaUpdate_ref(ctx context.Context, field graphql.CollectedField, obj *model.SchemaUpdate) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SchemaUpdate_ref,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Ref, nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_SchemaUpdate_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SchemaUpdate",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SchemaUpdate_id(ctx context.Context, field graphql.CollectedField, obj *model.SchemaUpdate) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SchemaUpdate_id,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_SchemaUpdate_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SchemaUpdate",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SchemaUpdate_subGraphs(ctx context.Context, field graphql.CollectedField, obj *model.SchemaUpdate) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SchemaUpdate_subGraphs,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.SubGraphs, nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSubGraph2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraphᚄ,
|
2025-11-19 11:29:30 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_SchemaUpdate_subGraphs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SchemaUpdate",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_SubGraph_id(ctx, field)
|
|
|
|
|
case "service":
|
|
|
|
|
return ec.fieldContext_SubGraph_service(ctx, field)
|
|
|
|
|
case "url":
|
|
|
|
|
return ec.fieldContext_SubGraph_url(ctx, field)
|
|
|
|
|
case "wsUrl":
|
|
|
|
|
return ec.fieldContext_SubGraph_wsUrl(ctx, field)
|
|
|
|
|
case "sdl":
|
|
|
|
|
return ec.fieldContext_SubGraph_sdl(ctx, field)
|
|
|
|
|
case "changedBy":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedBy(ctx, field)
|
|
|
|
|
case "changedAt":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedAt(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type SubGraph", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SchemaUpdate_cosmoRouterConfig(ctx context.Context, field graphql.CollectedField, obj *model.SchemaUpdate) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SchemaUpdate_cosmoRouterConfig,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.CosmoRouterConfig, nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_SchemaUpdate_cosmoRouterConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SchemaUpdate",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) _SubGraph_id(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_service(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_service,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Service, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_service(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_url(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_url,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.URL, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_wsUrl(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_wsUrl,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.WsURL, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_wsUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_sdl(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_sdl,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Sdl, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_sdl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_changedBy(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_changedBy,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ChangedBy, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_changedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph_changedAt(ctx context.Context, field graphql.CollectedField, obj *model.SubGraph) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraph_changedAt,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ChangedAt, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNTime2timeᚐTime,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraph_changedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraph",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Time does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
func (ec *executionContext) _SubGraphs_id(ctx context.Context, field graphql.CollectedField, obj *model.SubGraphs) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraphs_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraphs_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraphs",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraphs_minDelaySeconds(ctx context.Context, field graphql.CollectedField, obj *model.SubGraphs) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraphs_minDelaySeconds,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.MinDelaySeconds, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNInt2int,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraphs_minDelaySeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraphs",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-25 21:46:15 +01:00
|
|
|
func (ec *executionContext) _SubGraphs_sdl(ctx context.Context, field graphql.CollectedField, obj *model.SubGraphs) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraphs_sdl,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Sdl, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2024-03-25 21:46:15 +01:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraphs_sdl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2024-03-25 21:46:15 +01:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraphs",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
func (ec *executionContext) _SubGraphs_subGraphs(ctx context.Context, field graphql.CollectedField, obj *model.SubGraphs) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_SubGraphs_subGraphs,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.SubGraphs, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSubGraph2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraphᚄ,
|
2025-09-15 07:19:10 +02:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_SubGraphs_subGraphs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "SubGraphs",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_SubGraph_id(ctx, field)
|
|
|
|
|
case "service":
|
|
|
|
|
return ec.fieldContext_SubGraph_service(ctx, field)
|
|
|
|
|
case "url":
|
|
|
|
|
return ec.fieldContext_SubGraph_url(ctx, field)
|
|
|
|
|
case "wsUrl":
|
|
|
|
|
return ec.fieldContext_SubGraph_wsUrl(ctx, field)
|
|
|
|
|
case "sdl":
|
|
|
|
|
return ec.fieldContext_SubGraph_sdl(ctx, field)
|
|
|
|
|
case "changedBy":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedBy(ctx, field)
|
|
|
|
|
case "changedAt":
|
|
|
|
|
return ec.fieldContext_SubGraph_changedAt(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type SubGraph", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
func (ec *executionContext) _Subscription_schemaUpdates(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveFieldStream(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Subscription_schemaUpdates,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Resolvers.Subscription().SchemaUpdates(ctx, fc.Args["ref"].(string))
|
2025-11-19 11:29:30 +01:00
|
|
|
},
|
|
|
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
|
|
|
directive0 := next
|
|
|
|
|
|
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
|
|
|
organization, err := ec.unmarshalOBoolean2ᚖbool(ctx, true)
|
|
|
|
|
if err != nil {
|
|
|
|
|
var zeroVal *model.SchemaUpdate
|
|
|
|
|
return zeroVal, err
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
if ec.Directives.Auth == nil {
|
2025-11-19 11:29:30 +01:00
|
|
|
var zeroVal *model.SchemaUpdate
|
|
|
|
|
return zeroVal, errors.New("directive auth is not implemented")
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
return ec.Directives.Auth(ctx, nil, directive0, nil, organization)
|
2025-11-19 11:29:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next = directive1
|
|
|
|
|
return next
|
|
|
|
|
},
|
2026-01-17 22:53:46 +01:00
|
|
|
ec.marshalNSchemaUpdate2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSchemaUpdate,
|
2025-11-19 11:29:30 +01:00
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Subscription_schemaUpdates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Subscription",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: true,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "ref":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_ref(ctx, field)
|
|
|
|
|
case "id":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_id(ctx, field)
|
|
|
|
|
case "subGraphs":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_subGraphs(ctx, field)
|
|
|
|
|
case "cosmoRouterConfig":
|
|
|
|
|
return ec.fieldContext_SchemaUpdate_cosmoRouterConfig(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type SchemaUpdate", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field_Subscription_schemaUpdates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
func (ec *executionContext) _Unchanged_id(ctx context.Context, field graphql.CollectedField, obj *model.Unchanged) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Unchanged_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNID2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Unchanged_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Unchanged",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Unchanged_minDelaySeconds(ctx context.Context, field graphql.CollectedField, obj *model.Unchanged) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_Unchanged_minDelaySeconds,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.MinDelaySeconds, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNInt2int,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_Unchanged_minDelaySeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "Unchanged",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext_User_id,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.ID, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "User",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Directive_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Directive",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Directive_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Directive",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-27 21:54:03 +00:00
|
|
|
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Directive_isRepeatable,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.IsRepeatable, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2025-02-27 21:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Directive",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Directive_locations,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Locations, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalN__DirectiveLocation2ᚕstringᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Directive",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type __DirectiveLocation does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Directive_args,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Args, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2025-01-28 14:57:10 +00:00
|
|
|
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Directive",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
|
|
case "type":
|
|
|
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
|
|
case "defaultValue":
|
|
|
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isDeprecated":
|
|
|
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-01-28 14:57:10 +00:00
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___EnumValue_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__EnumValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___EnumValue_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__EnumValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___EnumValue_isDeprecated,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.IsDeprecated(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__EnumValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___EnumValue_deprecationReason,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.DeprecationReason(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__EnumValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_args,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Args, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2025-01-28 14:57:10 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
|
|
case "type":
|
|
|
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
|
|
case "defaultValue":
|
|
|
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isDeprecated":
|
|
|
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-01-28 14:57:10 +00:00
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
return fc, err
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_type,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Type, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_isDeprecated,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.IsDeprecated(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Field_deprecationReason,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.DeprecationReason(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Field",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_name,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalNString2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
2025-09-15 07:19:10 +02:00
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2025-09-15 07:19:10 +02:00
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_type,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Type, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_defaultValue,
|
2025-09-17 21:19:09 +02:00
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.DefaultValue, nil
|
|
|
|
|
},
|
2025-09-15 07:19:10 +02:00
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: false,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-28 14:57:10 +00:00
|
|
|
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_isDeprecated,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.IsDeprecated(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalNBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2025-01-28 14:57:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___InputValue_deprecationReason,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.DeprecationReason(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2025-01-28 14:57:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__InputValue",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_types,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Types(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_queryType,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.QueryType(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_mutationType,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.MutationType(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_subscriptionType,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.SubscriptionType(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Schema_directives,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Directives(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Schema",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Directive_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Directive_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "isRepeatable":
|
|
|
|
|
return ec.fieldContext___Directive_isRepeatable(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "locations":
|
|
|
|
|
return ec.fieldContext___Directive_locations(ctx, field)
|
|
|
|
|
case "args":
|
|
|
|
|
return ec.fieldContext___Directive_args(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_kind,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Kind(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalN__TypeKind2string,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type __TypeKind does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_name,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Name(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_description,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Description(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-27 21:54:03 +00:00
|
|
|
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_specifiedByURL,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.SpecifiedByURL(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOString2ᚖstring,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2025-02-27 21:54:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_fields,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Field_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Field_description(ctx, field)
|
|
|
|
|
case "args":
|
|
|
|
|
return ec.fieldContext___Field_args(ctx, field)
|
|
|
|
|
case "type":
|
|
|
|
|
return ec.fieldContext___Field_type(ctx, field)
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
return ec.fieldContext___Field_isDeprecated(ctx, field)
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
return ec.fieldContext___Field_deprecationReason(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_interfaces,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.Interfaces(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_possibleTypes,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.PossibleTypes(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_enumValues,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___EnumValue_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___EnumValue_description(ctx, field)
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
|
|
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
err = ec.Recover(ctx, r)
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
|
|
if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
2023-06-14 06:25:11 +00:00
|
|
|
return fc, err
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_inputFields,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.InputFields(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
|
|
case "type":
|
|
|
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
|
|
case "defaultValue":
|
|
|
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isDeprecated":
|
|
|
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_ofType,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.OfType(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:52:57 +00:00
|
|
|
func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "kind":
|
|
|
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
|
|
|
case "name":
|
|
|
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
|
|
|
case "description":
|
|
|
|
|
return ec.fieldContext___Type_description(ctx, field)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
|
|
case "ofType":
|
|
|
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-28 14:57:10 +00:00
|
|
|
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
2025-09-15 07:19:10 +02:00
|
|
|
return graphql.ResolveField(
|
|
|
|
|
ctx,
|
|
|
|
|
ec.OperationContext,
|
|
|
|
|
field,
|
|
|
|
|
ec.fieldContext___Type_isOneOf,
|
|
|
|
|
func(ctx context.Context) (any, error) {
|
|
|
|
|
return obj.IsOneOf(), nil
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
ec.marshalOBoolean2bool,
|
|
|
|
|
true,
|
|
|
|
|
false,
|
|
|
|
|
)
|
2025-01-28 14:57:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
fc = &graphql.FieldContext{
|
|
|
|
|
Object: "__Type",
|
|
|
|
|
Field: field,
|
|
|
|
|
IsMethod: true,
|
|
|
|
|
IsResolver: false,
|
|
|
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
return fc, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
// endregion **************************** field.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
// region **************************** input.gotpl *****************************
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalInputInputAPIKey(ctx context.Context, obj any) (model.InputAPIKey, error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
var it model.InputAPIKey
|
2026-03-09 01:34:34 +00:00
|
|
|
if obj == nil {
|
|
|
|
|
return it, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
asMap := map[string]any{}
|
|
|
|
|
for k, v := range obj.(map[string]any) {
|
2023-04-27 07:09:10 +02:00
|
|
|
asMap[k] = v
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fieldsInOrder := [...]string{"name", "organizationId", "refs", "read", "publish"}
|
|
|
|
|
for _, k := range fieldsInOrder {
|
|
|
|
|
v, ok := asMap[k]
|
|
|
|
|
if !ok {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
switch k {
|
|
|
|
|
case "name":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Name = data
|
2023-04-27 07:09:10 +02:00
|
|
|
case "organizationId":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNID2string(ctx, v)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.OrganizationID = data
|
2023-04-27 07:09:10 +02:00
|
|
|
case "refs":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refs"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Refs = data
|
2023-04-27 07:09:10 +02:00
|
|
|
case "read":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("read"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNBoolean2bool(ctx, v)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Read = data
|
2023-04-27 07:09:10 +02:00
|
|
|
case "publish":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("publish"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNBoolean2bool(ctx, v)
|
2023-04-27 07:09:10 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Publish = data
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return it, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalInputInputSubGraph(ctx context.Context, obj any) (model.InputSubGraph, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
var it model.InputSubGraph
|
2026-03-09 01:34:34 +00:00
|
|
|
if obj == nil {
|
|
|
|
|
return it, nil
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
asMap := map[string]any{}
|
|
|
|
|
for k, v := range obj.(map[string]any) {
|
2022-10-09 15:23:52 +02:00
|
|
|
asMap[k] = v
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fieldsInOrder := [...]string{"ref", "service", "url", "wsUrl", "sdl"}
|
|
|
|
|
for _, k := range fieldsInOrder {
|
|
|
|
|
v, ok := asMap[k]
|
|
|
|
|
if !ok {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
switch k {
|
|
|
|
|
case "ref":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Ref = data
|
2022-10-09 15:23:52 +02:00
|
|
|
case "service":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Service = data
|
2022-10-09 15:23:52 +02:00
|
|
|
case "url":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.URL = data
|
2022-10-09 15:23:52 +02:00
|
|
|
case "wsUrl":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("wsUrl"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.WsURL = data
|
2022-10-09 15:23:52 +02:00
|
|
|
case "sdl":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sdl"))
|
2023-05-06 06:24:35 +00:00
|
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
2022-10-09 15:23:52 +02:00
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
2023-05-06 06:24:35 +00:00
|
|
|
it.Sdl = data
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return it, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion **************************** input.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
// region ************************** interface.gotpl ***************************
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
func (ec *executionContext) _Supergraph(ctx context.Context, sel ast.SelectionSet, obj model.Supergraph) graphql.Marshaler {
|
|
|
|
|
switch obj := (obj).(type) {
|
|
|
|
|
case nil:
|
|
|
|
|
return graphql.Null
|
|
|
|
|
case model.Unchanged:
|
|
|
|
|
return ec._Unchanged(ctx, sel, &obj)
|
|
|
|
|
case *model.Unchanged:
|
|
|
|
|
if obj == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._Unchanged(ctx, sel, obj)
|
|
|
|
|
case model.SubGraphs:
|
|
|
|
|
return ec._SubGraphs(ctx, sel, &obj)
|
|
|
|
|
case *model.SubGraphs:
|
|
|
|
|
if obj == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._SubGraphs(ctx, sel, obj)
|
|
|
|
|
default:
|
2026-01-13 08:40:58 +01:00
|
|
|
if typedObj, ok := obj.(graphql.Marshaler); ok {
|
|
|
|
|
return typedObj
|
2025-12-17 07:58:03 +01:00
|
|
|
} else {
|
|
|
|
|
panic(fmt.Errorf("unexpected type %T; non-generated variants of Supergraph must implement graphql.Marshaler", obj))
|
|
|
|
|
}
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
// endregion ************************** interface.gotpl ***************************
|
|
|
|
|
|
|
|
|
|
// region **************************** object.gotpl ****************************
|
|
|
|
|
|
|
|
|
|
var aPIKeyImplementors = []string{"APIKey"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey(ctx context.Context, sel ast.SelectionSet, obj *model.APIKey) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, aPIKeyImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2023-04-27 07:09:10 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("APIKey")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._APIKey_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec._APIKey_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "key":
|
|
|
|
|
out.Values[i] = ec._APIKey_key(ctx, field, obj)
|
|
|
|
|
case "organization":
|
|
|
|
|
out.Values[i] = ec._APIKey_organization(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "refs":
|
|
|
|
|
out.Values[i] = ec._APIKey_refs(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "read":
|
|
|
|
|
out.Values[i] = ec._APIKey_read(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "publish":
|
|
|
|
|
out.Values[i] = ec._APIKey_publish(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2023-04-27 07:09:10 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var mutationImplementors = []string{"Mutation"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
|
|
Object: "Mutation",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2023-04-27 07:09:10 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
|
|
|
Object: field.Name,
|
|
|
|
|
Field: field,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("Mutation")
|
|
|
|
|
case "addOrganization":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_addOrganization(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
2025-11-22 18:37:07 +01:00
|
|
|
case "addUserToOrganization":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_addUserToOrganization(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
case "addAPIKey":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_addAPIKey(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
2025-11-22 18:37:07 +01:00
|
|
|
case "removeAPIKey":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_removeAPIKey(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "removeOrganization":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_removeOrganization(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
2023-04-27 07:09:10 +02:00
|
|
|
case "updateSubGraph":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Mutation_updateSubGraph(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2023-04-27 07:09:10 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var organizationImplementors = []string{"Organization"}
|
2022-10-09 15:23:52 +02:00
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *model.Organization) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
2023-04-27 07:09:10 +02:00
|
|
|
out.Values[i] = graphql.MarshalString("Organization")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._Organization_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec._Organization_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "users":
|
|
|
|
|
out.Values[i] = ec._Organization_users(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
case "apiKeys":
|
|
|
|
|
out.Values[i] = ec._Organization_apiKeys(ctx, field, obj)
|
2023-03-08 06:24:17 +00:00
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-03-08 06:24:17 +00:00
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2023-03-08 06:24:17 +00:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var queryImplementors = []string{"Query"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
|
|
Object: "Query",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
|
|
|
Object: field.Name,
|
|
|
|
|
Field: field,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("Query")
|
2023-04-27 07:09:10 +02:00
|
|
|
case "organizations":
|
2022-10-09 15:23:52 +02:00
|
|
|
field := field
|
|
|
|
|
|
2024-09-16 22:54:19 +00:00
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
res = ec._Query_organizations(ctx, field)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
|
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
2025-11-22 18:37:07 +01:00
|
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
|
|
|
case "allOrganizations":
|
|
|
|
|
field := field
|
|
|
|
|
|
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
res = ec._Query_allOrganizations(ctx, field)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
|
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
2024-09-16 22:54:19 +00:00
|
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
2024-09-16 22:54:19 +00:00
|
|
|
|
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
2022-10-14 22:41:56 +02:00
|
|
|
case "supergraph":
|
|
|
|
|
field := field
|
|
|
|
|
|
2024-09-16 22:54:19 +00:00
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
res = ec._Query_supergraph(ctx, field)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
|
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
|
|
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
2024-09-13 16:53:19 +00:00
|
|
|
|
2025-11-20 17:02:19 +01:00
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
|
|
|
case "latestSchema":
|
|
|
|
|
field := field
|
|
|
|
|
|
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
|
|
defer func() {
|
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
res = ec._Query_latestSchema(ctx, field)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
|
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
|
|
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-16 22:54:19 +00:00
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
|
|
|
case "__type":
|
2022-10-09 15:23:52 +02:00
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Query___type(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
case "__schema":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Query___schema(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2023-03-08 06:24:17 +00:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
var schemaUpdateImplementors = []string{"SchemaUpdate"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SchemaUpdate(ctx context.Context, sel ast.SelectionSet, obj *model.SchemaUpdate) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, schemaUpdateImplementors)
|
|
|
|
|
|
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("SchemaUpdate")
|
|
|
|
|
case "ref":
|
|
|
|
|
out.Values[i] = ec._SchemaUpdate_ref(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._SchemaUpdate_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "subGraphs":
|
|
|
|
|
out.Values[i] = ec._SchemaUpdate_subGraphs(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "cosmoRouterConfig":
|
|
|
|
|
out.Values[i] = ec._SchemaUpdate_cosmoRouterConfig(ctx, field, obj)
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2025-11-19 11:29:30 +01:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2025-11-19 11:29:30 +01:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
var subGraphImplementors = []string{"SubGraph"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraph(ctx context.Context, sel ast.SelectionSet, obj *model.SubGraph) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, subGraphImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("SubGraph")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._SubGraph_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "service":
|
|
|
|
|
out.Values[i] = ec._SubGraph_service(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "url":
|
|
|
|
|
out.Values[i] = ec._SubGraph_url(ctx, field, obj)
|
|
|
|
|
case "wsUrl":
|
|
|
|
|
out.Values[i] = ec._SubGraph_wsUrl(ctx, field, obj)
|
|
|
|
|
case "sdl":
|
|
|
|
|
out.Values[i] = ec._SubGraph_sdl(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "changedBy":
|
|
|
|
|
out.Values[i] = ec._SubGraph_changedBy(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "changedAt":
|
|
|
|
|
out.Values[i] = ec._SubGraph_changedAt(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
var subGraphsImplementors = []string{"SubGraphs", "Supergraph"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _SubGraphs(ctx context.Context, sel ast.SelectionSet, obj *model.SubGraphs) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, subGraphsImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-14 22:41:56 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("SubGraphs")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._SubGraphs_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
case "minDelaySeconds":
|
|
|
|
|
out.Values[i] = ec._SubGraphs_minDelaySeconds(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
2024-03-25 21:46:15 +01:00
|
|
|
case "sdl":
|
|
|
|
|
out.Values[i] = ec._SubGraphs_sdl(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
2022-10-14 22:41:56 +02:00
|
|
|
case "subGraphs":
|
|
|
|
|
out.Values[i] = ec._SubGraphs_subGraphs(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-14 22:41:56 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-19 11:29:30 +01:00
|
|
|
var subscriptionImplementors = []string{"Subscription"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors)
|
|
|
|
|
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
|
|
Object: "Subscription",
|
|
|
|
|
})
|
|
|
|
|
if len(fields) != 1 {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "must subscribe to exactly one stream")
|
2025-11-19 11:29:30 +01:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch fields[0].Name {
|
|
|
|
|
case "schemaUpdates":
|
|
|
|
|
return ec._Subscription_schemaUpdates(ctx, fields[0])
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(fields[0].Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
var unchangedImplementors = []string{"Unchanged", "Supergraph"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _Unchanged(ctx context.Context, sel ast.SelectionSet, obj *model.Unchanged) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, unchangedImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-14 22:41:56 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("Unchanged")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._Unchanged_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
case "minDelaySeconds":
|
|
|
|
|
out.Values[i] = ec._Unchanged_minDelaySeconds(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-14 22:41:56 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
var userImplementors = []string{"User"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2023-04-27 07:09:10 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("User")
|
|
|
|
|
case "id":
|
|
|
|
|
out.Values[i] = ec._User_id(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2023-04-27 07:09:10 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
var __DirectiveImplementors = []string{"__Directive"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__Directive")
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___Directive_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Directive_description(ctx, field, obj)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "isRepeatable":
|
|
|
|
|
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
2022-10-09 15:23:52 +02:00
|
|
|
case "locations":
|
|
|
|
|
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "args":
|
|
|
|
|
out.Values[i] = ec.___Directive_args(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var __EnumValueImplementors = []string{"__EnumValue"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__EnumValue")
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var __FieldImplementors = []string{"__Field"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__Field")
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___Field_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Field_description(ctx, field, obj)
|
|
|
|
|
case "args":
|
|
|
|
|
out.Values[i] = ec.___Field_args(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "type":
|
|
|
|
|
out.Values[i] = ec.___Field_type(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var __InputValueImplementors = []string{"__InputValue"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__InputValue")
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___InputValue_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
|
|
|
|
|
case "type":
|
|
|
|
|
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "defaultValue":
|
|
|
|
|
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isDeprecated":
|
|
|
|
|
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
2022-10-09 15:23:52 +02:00
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var __SchemaImplementors = []string{"__Schema"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__Schema")
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Schema_description(ctx, field, obj)
|
|
|
|
|
case "types":
|
|
|
|
|
out.Values[i] = ec.___Schema_types(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "queryType":
|
|
|
|
|
out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "mutationType":
|
|
|
|
|
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
|
|
|
|
|
case "subscriptionType":
|
|
|
|
|
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
|
|
|
|
|
case "directives":
|
|
|
|
|
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var __TypeImplementors = []string{"__Type"}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
|
|
|
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
out := graphql.NewFieldSet(fields)
|
2023-06-07 06:25:20 +00:00
|
|
|
deferred := make(map[string]*graphql.FieldSet)
|
2022-10-09 15:23:52 +02:00
|
|
|
for i, field := range fields {
|
|
|
|
|
switch field.Name {
|
|
|
|
|
case "__typename":
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__Type")
|
|
|
|
|
case "kind":
|
|
|
|
|
out.Values[i] = ec.___Type_kind(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Invalids++
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___Type_name(ctx, field, obj)
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Type_description(ctx, field, obj)
|
2025-02-27 21:54:03 +00:00
|
|
|
case "specifiedByURL":
|
|
|
|
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
2022-10-09 15:23:52 +02:00
|
|
|
case "fields":
|
|
|
|
|
out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
|
|
|
|
case "interfaces":
|
|
|
|
|
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
|
|
|
|
|
case "enumValues":
|
|
|
|
|
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
|
|
|
|
|
case "inputFields":
|
|
|
|
|
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
|
|
|
|
case "ofType":
|
|
|
|
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
2025-01-28 14:57:10 +00:00
|
|
|
case "isOneOf":
|
|
|
|
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
2022-10-09 15:23:52 +02:00
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
out.Dispatch(ctx)
|
|
|
|
|
if out.Invalids > 0 {
|
2022-10-09 15:23:52 +02:00
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2023-06-07 06:25:20 +00:00
|
|
|
|
2026-02-19 16:31:43 +00:00
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
2023-06-07 06:25:20 +00:00
|
|
|
|
|
|
|
|
for label, dfs := range deferred {
|
2026-02-19 16:31:43 +00:00
|
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
2023-06-07 06:25:20 +00:00
|
|
|
Label: label,
|
|
|
|
|
Path: graphql.GetPath(ctx),
|
|
|
|
|
FieldSet: dfs,
|
|
|
|
|
Context: ctx,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
return out
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion **************************** object.gotpl ****************************
|
|
|
|
|
|
|
|
|
|
// region ***************************** type.gotpl *****************************
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNAPIKey2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKey(ctx context.Context, sel ast.SelectionSet, v model.APIKey) graphql.Marshaler {
|
2023-04-27 07:09:10 +02:00
|
|
|
return ec._APIKey(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNAPIKey2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKeyᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.APIKey) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalNAPIKey2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKey(ctx, sel, v[i])
|
|
|
|
|
})
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNAPIKey2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐAPIKey(ctx context.Context, sel ast.SelectionSet, v *model.APIKey) graphql.Marshaler {
|
2023-04-27 07:09:10 +02:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._APIKey(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalBoolean(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalID(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalID(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) unmarshalNInputSubGraph2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐInputSubGraph(ctx context.Context, v any) (model.InputSubGraph, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := ec.unmarshalInputInputSubGraph(ctx, v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) {
|
2022-10-14 22:41:56 +02:00
|
|
|
res, err := graphql.UnmarshalInt(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-14 22:41:56 +02:00
|
|
|
res := graphql.MarshalInt(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNOrganization2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization(ctx context.Context, sel ast.SelectionSet, v model.Organization) graphql.Marshaler {
|
2023-04-27 07:09:10 +02:00
|
|
|
return ec._Organization(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNOrganization2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganizationᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Organization) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization(ctx, sel, v[i])
|
|
|
|
|
})
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNOrganization2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *model.Organization) graphql.Marshaler {
|
2023-04-27 07:09:10 +02:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._Organization(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSchemaUpdate2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSchemaUpdate(ctx context.Context, sel ast.SelectionSet, v model.SchemaUpdate) graphql.Marshaler {
|
2025-11-19 11:29:30 +01:00
|
|
|
return ec._SchemaUpdate(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSchemaUpdate2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSchemaUpdate(ctx context.Context, sel ast.SelectionSet, v *model.SchemaUpdate) graphql.Marshaler {
|
2025-11-19 11:29:30 +01:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2025-11-19 11:29:30 +01:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._SchemaUpdate(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalString(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalString(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
|
|
|
var vSlice []any
|
2025-03-15 18:54:58 +00:00
|
|
|
vSlice = graphql.CoerceList(v)
|
2023-04-27 07:09:10 +02:00
|
|
|
var err error
|
|
|
|
|
res := make([]string, len(vSlice))
|
|
|
|
|
for i := range vSlice {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
|
|
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
|
|
|
ret := make(graphql.Array, len(v))
|
|
|
|
|
for i := range v {
|
|
|
|
|
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSubGraph2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraph(ctx context.Context, sel ast.SelectionSet, v model.SubGraph) graphql.Marshaler {
|
2022-10-09 15:23:52 +02:00
|
|
|
return ec._SubGraph(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSubGraph2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraphᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.SubGraph) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalNSubGraph2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraph(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSubGraph2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSubGraph(ctx context.Context, sel ast.SelectionSet, v *model.SubGraph) graphql.Marshaler {
|
2022-10-09 15:23:52 +02:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._SubGraph(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNSupergraph2giteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐSupergraph(ctx context.Context, sel ast.SelectionSet, v model.Supergraph) graphql.Marshaler {
|
2022-10-14 22:41:56 +02:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-14 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._Supergraph(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalTime(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalTime(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNUser2ᚕᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.User) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalNUser2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐUser(ctx, sel, v[i])
|
|
|
|
|
})
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) marshalNUser2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler {
|
2023-04-27 07:09:10 +02:00
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2023-04-27 07:09:10 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._User(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
|
|
|
|
|
return ec.___Directive(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalString(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalString(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
|
|
|
var vSlice []any
|
2025-03-15 18:54:58 +00:00
|
|
|
vSlice = graphql.CoerceList(v)
|
2022-10-09 15:23:52 +02:00
|
|
|
var err error
|
|
|
|
|
res := make([]string, len(vSlice))
|
|
|
|
|
for i := range vSlice {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
|
|
res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
|
|
|
|
|
return ec.___EnumValue(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
|
|
|
|
|
return ec.___Field(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
|
|
|
|
|
return ec.___InputValue(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
|
|
|
|
|
return ec.___Type(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec.___Type(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalString(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalString(v)
|
|
|
|
|
if res == graphql.Null {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
2025-11-24 19:34:22 +01:00
|
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
2022-10-09 15:23:52 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
|
|
|
|
_ = ctx
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalBoolean(v)
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
|
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
|
|
|
|
_ = ctx
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalBoolean(*v)
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 22:53:46 +01:00
|
|
|
func (ec *executionContext) unmarshalOInputAPIKey2ᚖgiteaᚗunboundᚗseᚋunboundsoftwareᚋschemasᚋgraphᚋmodelᚐInputAPIKey(ctx context.Context, v any) (*model.InputAPIKey, error) {
|
2023-04-27 07:09:10 +02:00
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
res, err := ec.unmarshalInputInputAPIKey(ctx, v)
|
|
|
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 02:56:21 +00:00
|
|
|
func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
|
2022-10-09 15:23:52 +02:00
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
res, err := graphql.UnmarshalString(v)
|
|
|
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2025-05-02 15:54:47 +00:00
|
|
|
_ = sel
|
|
|
|
|
_ = ctx
|
2022-10-09 15:23:52 +02:00
|
|
|
res := graphql.MarshalString(*v)
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec.___Schema(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
2026-02-19 16:31:43 +00:00
|
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
|
|
fc := graphql.GetFieldContext(ctx)
|
|
|
|
|
fc.Result = &v[i]
|
|
|
|
|
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
|
|
|
})
|
2022-10-09 15:23:52 +02:00
|
|
|
|
|
|
|
|
for _, e := range ret {
|
|
|
|
|
if e == graphql.Null {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec.___Type(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion ***************************** type.gotpl *****************************
|