|
|
|
@@ -20,7 +20,7 @@ import (
|
|
|
|
|
"gitea.unbound.se/unboundsoftware/schemas/graph/model"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// region ***************************** api!.gotpl *****************************
|
|
|
|
|
// region ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
|
|
|
|
|
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
|
|
|
|
@@ -111,10 +111,6 @@ type ComplexityRoot struct {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion ***************************** api!.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
// region ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
type MutationResolver interface {
|
|
|
|
|
AddOrganization(ctx context.Context, name string) (*model.Organization, error)
|
|
|
|
|
AddUserToOrganization(ctx context.Context, organizationID string, userID string) (*model.Organization, error)
|
|
|
|
@@ -133,10 +129,6 @@ type SubscriptionResolver interface {
|
|
|
|
|
SchemaUpdates(ctx context.Context, ref string) (<-chan *model.SchemaUpdate, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// region ************************** internal!.gotpl ***************************
|
|
|
|
|
|
|
|
|
|
type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
|
|
|
|
|
|
|
func (e *executableSchema) Schema() *ast.Schema {
|
|
|
|
@@ -836,7 +828,7 @@ func (ec *executionContext) childFields___Type(ctx context.Context, field graphq
|
|
|
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// endregion ************************** internal!.gotpl ***************************
|
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// region ***************************** args.gotpl *****************************
|
|
|
|
|
|
|
|
|
@@ -1084,6 +1076,10 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg
|
|
|
|
|
|
|
|
|
|
// endregion ***************************** args.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
// region ************************** directives.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// endregion ************************** directives.gotpl **************************
|
|
|
|
|
|
|
|
|
|
// region **************************** field.gotpl *****************************
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) _APIKey_id(ctx context.Context, field graphql.CollectedField, obj *model.APIKey) (ret graphql.Marshaler) {
|
|
|
|
@@ -3775,9 +3771,6 @@ func (ec *executionContext) _APIKey(ctx context.Context, sel ast.SelectionSet, o
|
|
|
|
|
}
|
|
|
|
|
case "key":
|
|
|
|
|
out.Values[i] = ec._APIKey_key(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "organization":
|
|
|
|
|
out.Values[i] = ec._APIKey_organization(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4070,16 +4063,10 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Query___type(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
case "__schema":
|
|
|
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
|
|
return ec._Query___schema(ctx, field)
|
|
|
|
|
})
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
@@ -4131,9 +4118,6 @@ func (ec *executionContext) _SchemaUpdate(ctx context.Context, sel ast.Selection
|
|
|
|
|
}
|
|
|
|
|
case "cosmoRouterConfig":
|
|
|
|
|
out.Values[i] = ec._SchemaUpdate_cosmoRouterConfig(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
@@ -4180,14 +4164,8 @@ func (ec *executionContext) _SubGraph(ctx context.Context, sel ast.SelectionSet,
|
|
|
|
|
}
|
|
|
|
|
case "url":
|
|
|
|
|
out.Values[i] = ec._SubGraph_url(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "wsUrl":
|
|
|
|
|
out.Values[i] = ec._SubGraph_wsUrl(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "sdl":
|
|
|
|
|
out.Values[i] = ec._SubGraph_sdl(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4401,9 +4379,6 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS
|
|
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Directive_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "isRepeatable":
|
|
|
|
|
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4460,9 +4435,6 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS
|
|
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4470,9 +4442,6 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS
|
|
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
@@ -4514,9 +4483,6 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet,
|
|
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Field_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "args":
|
|
|
|
|
out.Values[i] = ec.___Field_args(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4534,9 +4500,6 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet,
|
|
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
@@ -4578,9 +4541,6 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
|
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "type":
|
|
|
|
|
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4588,9 +4548,6 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
|
|
|
|
}
|
|
|
|
|
case "defaultValue":
|
|
|
|
|
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "isDeprecated":
|
|
|
|
|
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4598,9 +4555,6 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
|
|
|
|
}
|
|
|
|
|
case "deprecationReason":
|
|
|
|
|
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
@@ -4637,9 +4591,6 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet,
|
|
|
|
|
out.Values[i] = graphql.MarshalString("__Schema")
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Schema_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "types":
|
|
|
|
|
out.Values[i] = ec.___Schema_types(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4652,14 +4603,8 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet,
|
|
|
|
|
}
|
|
|
|
|
case "mutationType":
|
|
|
|
|
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "subscriptionType":
|
|
|
|
|
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "directives":
|
|
|
|
|
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.Null {
|
|
|
|
@@ -4706,54 +4651,24 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
|
|
|
|
}
|
|
|
|
|
case "name":
|
|
|
|
|
out.Values[i] = ec.___Type_name(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "description":
|
|
|
|
|
out.Values[i] = ec.___Type_description(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "specifiedByURL":
|
|
|
|
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "fields":
|
|
|
|
|
out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "interfaces":
|
|
|
|
|
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "possibleTypes":
|
|
|
|
|
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "enumValues":
|
|
|
|
|
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "inputFields":
|
|
|
|
|
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "ofType":
|
|
|
|
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
case "isOneOf":
|
|
|
|
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
|
|
|
|
if out.Values[i] == graphql.RequiredNull {
|
|
|
|
|
out.Invalids++
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
|
|
|
}
|
|
|
|
|