mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
Bump gqlgen and gqlparser to the latest versions (#1166)
Co-authored-by: Konstantin Koval
This commit is contained in:
@@ -3,7 +3,7 @@ module github.com/photoview/photoview/api
|
|||||||
go 1.23.1
|
go 1.23.1
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.17.63
|
github.com/99designs/gqlgen v0.17.64
|
||||||
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e
|
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e
|
||||||
github.com/barasher/go-exiftool v1.10.0
|
github.com/barasher/go-exiftool v1.10.0
|
||||||
github.com/buckket/go-blurhash v1.1.0
|
github.com/buckket/go-blurhash v1.1.0
|
||||||
@@ -19,7 +19,7 @@ require (
|
|||||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
|
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
|
||||||
github.com/stretchr/testify v1.10.0
|
github.com/stretchr/testify v1.10.0
|
||||||
github.com/strukturag/libheif v1.18.2
|
github.com/strukturag/libheif v1.18.2
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21
|
github.com/vektah/gqlparser/v2 v2.5.22
|
||||||
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0
|
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0
|
||||||
github.com/xor-gate/goexif2 v1.1.0
|
github.com/xor-gate/goexif2 v1.1.0
|
||||||
golang.org/x/crypto v0.32.0
|
golang.org/x/crypto v0.32.0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||||
github.com/99designs/gqlgen v0.17.63 h1:HCdaYDPd9HqUXRchEvmE3EFzELRwLlaJ8DBuyC8Cqto=
|
github.com/99designs/gqlgen v0.17.64 h1:BzpqO5ofQXyy2XOa93Q6fP1BHLRjTOeU35ovTEsbYlw=
|
||||||
github.com/99designs/gqlgen v0.17.63/go.mod h1:sVCM2iwIZisJjTI/DEC3fpH+HFgxY1496ZJ+jbT9IjA=
|
github.com/99designs/gqlgen v0.17.64/go.mod h1:kaxLetFxPGeBBwiuKk75NxuI1fe9HRvob17In74v/Zc=
|
||||||
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e h1:lqIUFzxaqyYqUn4MhzAvSAh4wIte/iLNcIEWxpT/qbc=
|
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e h1:lqIUFzxaqyYqUn4MhzAvSAh4wIte/iLNcIEWxpT/qbc=
|
||||||
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e/go.mod h1:9wdDJkRgo3SGTcFwbQ7elVIQhIr2bbBjecuY7VoqmPU=
|
github.com/Kagami/go-face v0.0.0-20210630145111-0c14797b4d0e/go.mod h1:9wdDJkRgo3SGTcFwbQ7elVIQhIr2bbBjecuY7VoqmPU=
|
||||||
github.com/PuerkitoBio/goquery v1.9.3 h1:mpJr/ikUA9/GNJB/DBZcGeFDXUtosHRyRrwh7KGdTG0=
|
github.com/PuerkitoBio/goquery v1.9.3 h1:mpJr/ikUA9/GNJB/DBZcGeFDXUtosHRyRrwh7KGdTG0=
|
||||||
@@ -95,8 +95,8 @@ github.com/strukturag/libheif v1.18.2 h1:CrlRS7Kwl2odl4DYM/m6ay/HPXEcmQPK1xF8FxA
|
|||||||
github.com/strukturag/libheif v1.18.2/go.mod h1:E/PNRlmVtrtj9j2AvBZlrO4dsBDu6KfwDZn7X1Ce8Ks=
|
github.com/strukturag/libheif v1.18.2/go.mod h1:E/PNRlmVtrtj9j2AvBZlrO4dsBDu6KfwDZn7X1Ce8Ks=
|
||||||
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
|
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
|
||||||
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
|
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21 h1:Zw1rG2dr1pRR4wqwbVq4d6+xk2f4ut/yo+hwr4QjE08=
|
github.com/vektah/gqlparser/v2 v2.5.22 h1:yaaeJ0fu+nv1vUMW0Hl+aS1eiv1vMfapBNjpffAda1I=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.21/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
|
github.com/vektah/gqlparser/v2 v2.5.22/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
|
||||||
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0 h1:3UeQBvD0TFrlVjOeLOBz+CPAI8dnbqNSVwUwRrkp7vQ=
|
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0 h1:3UeQBvD0TFrlVjOeLOBz+CPAI8dnbqNSVwUwRrkp7vQ=
|
||||||
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod h1:IXCdmsXIht47RaVFLEdVnh1t+pgYtTAhQGj73kz+2DM=
|
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod h1:IXCdmsXIht47RaVFLEdVnh1t+pgYtTAhQGj73kz+2DM=
|
||||||
github.com/xor-gate/goexif2 v1.1.0 h1:OvTZ5iEvsDhRWFjV5xY3wT7uHFna28nSSP7ucau+cXQ=
|
github.com/xor-gate/goexif2 v1.1.0 h1:OvTZ5iEvsDhRWFjV5xY3wT7uHFna28nSSP7ucau+cXQ=
|
||||||
|
|||||||
@@ -3690,6 +3690,62 @@ func (ec *executionContext) field_Query_user_argsPaginate(
|
|||||||
return zeroVal, nil
|
return zeroVal, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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{}
|
||||||
|
arg0, err := ec.field___Directive_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
args["includeDeprecated"] = arg0
|
||||||
|
return args, nil
|
||||||
|
}
|
||||||
|
func (ec *executionContext) field___Directive_args_argsIncludeDeprecated(
|
||||||
|
ctx context.Context,
|
||||||
|
rawArgs map[string]any,
|
||||||
|
) (*bool, error) {
|
||||||
|
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||||
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||||
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||||
|
}
|
||||||
|
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, 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{}
|
||||||
|
arg0, err := ec.field___Field_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
args["includeDeprecated"] = arg0
|
||||||
|
return args, nil
|
||||||
|
}
|
||||||
|
func (ec *executionContext) field___Field_args_argsIncludeDeprecated(
|
||||||
|
ctx context.Context,
|
||||||
|
rawArgs map[string]any,
|
||||||
|
) (*bool, error) {
|
||||||
|
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||||
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||||
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||||
|
}
|
||||||
|
|
||||||
|
var zeroVal *bool
|
||||||
|
return zeroVal, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||||
var err error
|
var err error
|
||||||
args := map[string]any{}
|
args := map[string]any{}
|
||||||
@@ -10812,6 +10868,8 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -13216,7 +13274,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql
|
|||||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
fc = &graphql.FieldContext{
|
fc = &graphql.FieldContext{
|
||||||
Object: "__Directive",
|
Object: "__Directive",
|
||||||
Field: field,
|
Field: field,
|
||||||
@@ -13232,10 +13290,25 @@ func (ec *executionContext) fieldContext___Directive_args(_ context.Context, fie
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return fc, err
|
||||||
|
}
|
||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13569,7 +13642,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col
|
|||||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||||
fc = &graphql.FieldContext{
|
fc = &graphql.FieldContext{
|
||||||
Object: "__Field",
|
Object: "__Field",
|
||||||
Field: field,
|
Field: field,
|
||||||
@@ -13585,10 +13658,25 @@ func (ec *executionContext) fieldContext___Field_args(_ context.Context, field g
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return fc, err
|
||||||
|
}
|
||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13651,6 +13739,8 @@ func (ec *executionContext) fieldContext___Field_type(_ context.Context, field g
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -13887,6 +13977,8 @@ func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, fi
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -13935,6 +14027,91 @@ func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Con
|
|||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
||||||
|
fc, err := ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.IsDeprecated(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
if !graphql.HasFieldError(ctx, fc) {
|
||||||
|
ec.Errorf(ctx, "must not be null")
|
||||||
|
}
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(bool)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
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) {
|
||||||
|
fc, err := ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.DeprecationReason(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(*string)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
||||||
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -14035,6 +14212,8 @@ func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14101,6 +14280,8 @@ func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, f
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14164,6 +14345,8 @@ func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14227,6 +14410,8 @@ func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Con
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14538,6 +14723,8 @@ func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, fi
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14601,6 +14788,8 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context,
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14714,6 +14903,10 @@ func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, f
|
|||||||
return ec.fieldContext___InputValue_type(ctx, field)
|
return ec.fieldContext___InputValue_type(ctx, field)
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||||
|
case "isDeprecated":
|
||||||
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||||
|
case "deprecationReason":
|
||||||
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14777,6 +14970,8 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
|||||||
return ec.fieldContext___Type_ofType(ctx, field)
|
return ec.fieldContext___Type_ofType(ctx, field)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||||
|
case "isOneOf":
|
||||||
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||||
},
|
},
|
||||||
@@ -14825,6 +15020,47 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context
|
|||||||
return fc, nil
|
return fc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||||
|
fc, err := ec.fieldContext___Type_isOneOf(ctx, field)
|
||||||
|
if err != nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
ctx = graphql.WithFieldContext(ctx, fc)
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
ec.Error(ctx, ec.Recover(ctx, r))
|
||||||
|
ret = graphql.Null
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||||
|
ctx = rctx // use context from middleware stack in children
|
||||||
|
return obj.IsOneOf(), nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
ec.Error(ctx, err)
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
if resTmp == nil {
|
||||||
|
return graphql.Null
|
||||||
|
}
|
||||||
|
res := resTmp.(bool)
|
||||||
|
fc.Result = res
|
||||||
|
return ec.marshalOBoolean2bool(ctx, field.Selections, res)
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
// endregion **************************** field.gotpl *****************************
|
// endregion **************************** field.gotpl *****************************
|
||||||
|
|
||||||
// region **************************** input.gotpl *****************************
|
// region **************************** input.gotpl *****************************
|
||||||
@@ -17615,6 +17851,13 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
|||||||
}
|
}
|
||||||
case "defaultValue":
|
case "defaultValue":
|
||||||
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
||||||
|
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)
|
||||||
default:
|
default:
|
||||||
panic("unknown field " + strconv.Quote(field.Name))
|
panic("unknown field " + strconv.Quote(field.Name))
|
||||||
}
|
}
|
||||||
@@ -17727,6 +17970,8 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
|||||||
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
||||||
case "specifiedByURL":
|
case "specifiedByURL":
|
||||||
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
||||||
|
case "isOneOf":
|
||||||
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
||||||
default:
|
default:
|
||||||
panic("unknown field " + strconv.Quote(field.Name))
|
panic("unknown field " + strconv.Quote(field.Name))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/photoview/photoview/api/graphql"
|
api "github.com/photoview/photoview/api/graphql"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package resolvers
|
|||||||
|
|
||||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||||
// will be copied through when generating and any unknown code will be moved to the end.
|
// will be copied through when generating and any unknown code will be moved to the end.
|
||||||
// Code generated by github.com/99designs/gqlgen version v0.17.63
|
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
Reference in New Issue
Block a user