From aa4c3b1a6771b6c6560b9857af5dbea094dd319b Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 24 Nov 2026 15:14:21 +0000 Subject: [PATCH] Finish the Renovate batch: go.sum, gqlgen regen, lockfile, katex hold The Renovate branches changed go.mod and package.json without go.sum or package-lock.json, so this tidies the module graph, regenerates the gqlgen code for v0.17.98 and refreshes the lockfile. katex stays on 0.16: @mdit/plugin-katex renders with its own katex ^0.16 and Markdown.vue loads only the stylesheet from the top-level package, so 0.19's CSS would no longer match the rendered HTML. renovate.json5 now caps it below 0.17 so the bump is not proposed again. Co-Authored-By: Claude Opus 5.5 --- backend/graph/activity.resolvers.go | 2 +- backend/graph/auth.resolvers.go | 2 +- backend/graph/background.resolvers.go | 2 +- backend/graph/bookmark.resolvers.go | 2 +- backend/graph/box.resolvers.go | 2 +- backend/graph/component.resolvers.go | 2 +- backend/graph/cover_letter.resolvers.go | 2 +- backend/graph/favorite.resolvers.go | 2 +- backend/graph/generated.go | 2233 +++++++++-------------- backend/graph/gitea.resolvers.go | 2 +- backend/graph/layout.resolvers.go | 2 +- backend/graph/message.resolvers.go | 2 +- backend/graph/page.resolvers.go | 2 +- backend/graph/place.resolvers.go | 2 +- backend/graph/post.resolvers.go | 2 +- backend/graph/rowing.resolvers.go | 2 +- backend/graph/schema.resolvers.go | 2 +- backend/graph/spotify.resolvers.go | 2 +- backend/graph/steam.resolvers.go | 2 +- backend/graph/user.resolvers.go | 2 +- renovate.json5 | 9 + vue/package-lock.json | 46 +- vue/package.json | 2 +- 23 files changed, 902 insertions(+), 1426 deletions(-) diff --git a/backend/graph/activity.resolvers.go b/backend/graph/activity.resolvers.go index d6462ae..339586e 100644 --- a/backend/graph/activity.resolvers.go +++ b/backend/graph/activity.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/auth.resolvers.go b/backend/graph/auth.resolvers.go index 2eb9968..6c7f3e6 100644 --- a/backend/graph/auth.resolvers.go +++ b/backend/graph/auth.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/background.resolvers.go b/backend/graph/background.resolvers.go index 8d6b343..095c041 100644 --- a/backend/graph/background.resolvers.go +++ b/backend/graph/background.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/bookmark.resolvers.go b/backend/graph/bookmark.resolvers.go index d0cf747..94e5fbf 100644 --- a/backend/graph/bookmark.resolvers.go +++ b/backend/graph/bookmark.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/box.resolvers.go b/backend/graph/box.resolvers.go index 15332fb..7ca51b7 100644 --- a/backend/graph/box.resolvers.go +++ b/backend/graph/box.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/component.resolvers.go b/backend/graph/component.resolvers.go index 8d0d361..45f1687 100644 --- a/backend/graph/component.resolvers.go +++ b/backend/graph/component.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/cover_letter.resolvers.go b/backend/graph/cover_letter.resolvers.go index 8aa0cec..00948bb 100644 --- a/backend/graph/cover_letter.resolvers.go +++ b/backend/graph/cover_letter.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/favorite.resolvers.go b/backend/graph/favorite.resolvers.go index 7907eb0..dcc9ad9 100644 --- a/backend/graph/favorite.resolvers.go +++ b/backend/graph/favorite.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/generated.go b/backend/graph/generated.go index 3ea14dd..27a5e70 100644 --- a/backend/graph/generated.go +++ b/backend/graph/generated.go @@ -1923,30 +1923,32 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { opCtx := graphql.GetOperationContext(ctx) ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult)) - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputBackgroundInput, - ec.unmarshalInputCreateActivityInput, - ec.unmarshalInputCreateBookmarkInput, - ec.unmarshalInputCreateBoxInput, - ec.unmarshalInputCreateComponentInput, - ec.unmarshalInputCreateCoverLetterInput, - ec.unmarshalInputCreateCoverSnippetInput, - ec.unmarshalInputCreateFavoriteInput, - ec.unmarshalInputCreateLayoutInput, - ec.unmarshalInputCreatePageInput, - ec.unmarshalInputCreatePlaceInput, - ec.unmarshalInputCreatePostInput, - ec.unmarshalInputCreateUserInput, - ec.unmarshalInputLoginInput, - ec.unmarshalInputUpdateBoxInput, - ec.unmarshalInputUpdateComponentInput, - ec.unmarshalInputUpdateCoverLetterInput, - ec.unmarshalInputUpdateCoverSnippetInput, - ec.unmarshalInputUpdateLayoutInput, - ec.unmarshalInputUpdatePageInput, - ec.unmarshalInputUpdatePlaceInput, - ec.unmarshalInputUpdatePostInput, - ) + inputUnmarshalers := func() *graphql.InputUnmarshalerIndex { + return graphql.NewInputUnmarshalerIndex( + graphql.NewInputUnmarshaler("BackgroundInput", ec.unmarshalInputBackgroundInput), + graphql.NewInputUnmarshaler("CreateActivityInput", ec.unmarshalInputCreateActivityInput), + graphql.NewInputUnmarshaler("CreateBookmarkInput", ec.unmarshalInputCreateBookmarkInput), + graphql.NewInputUnmarshaler("CreateBoxInput", ec.unmarshalInputCreateBoxInput), + graphql.NewInputUnmarshaler("CreateComponentInput", ec.unmarshalInputCreateComponentInput), + graphql.NewInputUnmarshaler("CreateCoverLetterInput", ec.unmarshalInputCreateCoverLetterInput), + graphql.NewInputUnmarshaler("CreateCoverSnippetInput", ec.unmarshalInputCreateCoverSnippetInput), + graphql.NewInputUnmarshaler("CreateFavoriteInput", ec.unmarshalInputCreateFavoriteInput), + graphql.NewInputUnmarshaler("CreateLayoutInput", ec.unmarshalInputCreateLayoutInput), + graphql.NewInputUnmarshaler("CreatePageInput", ec.unmarshalInputCreatePageInput), + graphql.NewInputUnmarshaler("CreatePlaceInput", ec.unmarshalInputCreatePlaceInput), + graphql.NewInputUnmarshaler("CreatePostInput", ec.unmarshalInputCreatePostInput), + graphql.NewInputUnmarshaler("CreateUserInput", ec.unmarshalInputCreateUserInput), + graphql.NewInputUnmarshaler("LoginInput", ec.unmarshalInputLoginInput), + graphql.NewInputUnmarshaler("UpdateBoxInput", ec.unmarshalInputUpdateBoxInput), + graphql.NewInputUnmarshaler("UpdateComponentInput", ec.unmarshalInputUpdateComponentInput), + graphql.NewInputUnmarshaler("UpdateCoverLetterInput", ec.unmarshalInputUpdateCoverLetterInput), + graphql.NewInputUnmarshaler("UpdateCoverSnippetInput", ec.unmarshalInputUpdateCoverSnippetInput), + graphql.NewInputUnmarshaler("UpdateLayoutInput", ec.unmarshalInputUpdateLayoutInput), + graphql.NewInputUnmarshaler("UpdatePageInput", ec.unmarshalInputUpdatePageInput), + graphql.NewInputUnmarshaler("UpdatePlaceInput", ec.unmarshalInputUpdatePlaceInput), + graphql.NewInputUnmarshaler("UpdatePostInput", ec.unmarshalInputUpdatePostInput), + ) + } first := true switch opCtx.Operation.Operation { @@ -1956,7 +1958,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { var data graphql.Marshaler if first { first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + ctx = graphql.WithLazyInputUnmarshalerIndex(ctx, inputUnmarshalers) data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.PendingDeferred) > 0 { @@ -1986,7 +1988,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { return nil } first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + ctx = graphql.WithLazyInputUnmarshalerIndex(ctx, inputUnmarshalers) data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -3342,8 +3344,8 @@ func (ec *executionContext) field___Directive_args_args(ctx context.Context, raw var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) + func(ctx context.Context, v any) (bool, error) { + return ec.unmarshalOBoolean2bool(ctx, v) }) if err != nil { return nil, err @@ -3356,8 +3358,8 @@ func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", - func(ctx context.Context, v any) (*bool, error) { - return ec.unmarshalOBoolean2ᚖbool(ctx, v) + func(ctx context.Context, v any) (bool, error) { + return ec.unmarshalOBoolean2bool(ctx, v) }) if err != nil { return nil, err @@ -3394,6 +3396,20 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg return args, nil } +func (ec *executionContext) field___Type_inputFields_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, "includeDeprecated", + func(ctx context.Context, v any) (bool, error) { + return ec.unmarshalOBoolean2bool(ctx, v) + }) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} + // endregion ***************************** args.gotpl ***************************** // region **************************** field.gotpl ***************************** @@ -3418,7 +3434,7 @@ func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Activity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "ID") } func (ec *executionContext) _Activity_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { @@ -3441,7 +3457,7 @@ func (ec *executionContext) _Activity_createdAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Activity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "Time") } func (ec *executionContext) _Activity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { @@ -3464,7 +3480,7 @@ func (ec *executionContext) _Activity_updatedAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Activity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "Time") } func (ec *executionContext) _Activity_type(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { @@ -3487,7 +3503,7 @@ func (ec *executionContext) _Activity_type(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Activity_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "String") } func (ec *executionContext) _Activity_name(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { @@ -3510,7 +3526,7 @@ func (ec *executionContext) _Activity_name(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Activity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "String") } func (ec *executionContext) _Activity_link(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { @@ -3533,7 +3549,7 @@ func (ec *executionContext) _Activity_link(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Activity_link(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Activity", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Activity", field, false, false, "String") } func (ec *executionContext) _AuthPayload_user(ctx context.Context, field graphql.CollectedField, obj *model.AuthPayload) (ret graphql.Marshaler) { @@ -3588,7 +3604,7 @@ func (ec *executionContext) _Background_id(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Background_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "ID") } func (ec *executionContext) _Background_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Background) (ret graphql.Marshaler) { @@ -3611,7 +3627,7 @@ func (ec *executionContext) _Background_updatedAt(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext_Background_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "Time") } func (ec *executionContext) _Background_page(ctx context.Context, field graphql.CollectedField, obj *models.Background) (ret graphql.Marshaler) { @@ -3634,7 +3650,7 @@ func (ec *executionContext) _Background_page(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Background_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "String") } func (ec *executionContext) _Background_color(ctx context.Context, field graphql.CollectedField, obj *models.Background) (ret graphql.Marshaler) { @@ -3657,7 +3673,7 @@ func (ec *executionContext) _Background_color(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Background_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "String") } func (ec *executionContext) _Background_image(ctx context.Context, field graphql.CollectedField, obj *models.Background) (ret graphql.Marshaler) { @@ -3680,7 +3696,7 @@ func (ec *executionContext) _Background_image(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Background_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "String") } func (ec *executionContext) _Background_fit(ctx context.Context, field graphql.CollectedField, obj *models.Background) (ret graphql.Marshaler) { @@ -3703,7 +3719,7 @@ func (ec *executionContext) _Background_fit(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Background_fit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Background", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Background", field, false, false, "String") } func (ec *executionContext) _Bookmark_id(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3726,7 +3742,7 @@ func (ec *executionContext) _Bookmark_id(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Bookmark_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "ID") } func (ec *executionContext) _Bookmark_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3749,7 +3765,7 @@ func (ec *executionContext) _Bookmark_createdAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Bookmark_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "Time") } func (ec *executionContext) _Bookmark_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3772,7 +3788,7 @@ func (ec *executionContext) _Bookmark_updatedAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Bookmark_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "Time") } func (ec *executionContext) _Bookmark_category(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3795,7 +3811,7 @@ func (ec *executionContext) _Bookmark_category(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_Bookmark_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "String") } func (ec *executionContext) _Bookmark_name(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3818,7 +3834,7 @@ func (ec *executionContext) _Bookmark_name(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Bookmark_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "String") } func (ec *executionContext) _Bookmark_link(ctx context.Context, field graphql.CollectedField, obj *models.Bookmark) (ret graphql.Marshaler) { @@ -3841,7 +3857,7 @@ func (ec *executionContext) _Bookmark_link(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Bookmark_link(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Bookmark", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Bookmark", field, false, false, "String") } func (ec *executionContext) _Box_id(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3864,7 +3880,7 @@ func (ec *executionContext) _Box_id(ctx context.Context, field graphql.Collected ) } func (ec *executionContext) fieldContext_Box_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "ID") } func (ec *executionContext) _Box_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3887,7 +3903,7 @@ func (ec *executionContext) _Box_createdAt(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Box_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Time") } func (ec *executionContext) _Box_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3910,7 +3926,7 @@ func (ec *executionContext) _Box_updatedAt(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Box_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Time") } func (ec *executionContext) _Box_page(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3933,7 +3949,7 @@ func (ec *executionContext) _Box_page(ctx context.Context, field graphql.Collect ) } func (ec *executionContext) fieldContext_Box_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_kind(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3956,7 +3972,7 @@ func (ec *executionContext) _Box_kind(ctx context.Context, field graphql.Collect ) } func (ec *executionContext) fieldContext_Box_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_widget(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -3979,7 +3995,7 @@ func (ec *executionContext) _Box_widget(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Box_widget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_html(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4002,7 +4018,7 @@ func (ec *executionContext) _Box_html(ctx context.Context, field graphql.Collect ) } func (ec *executionContext) fieldContext_Box_html(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_title(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4025,7 +4041,7 @@ func (ec *executionContext) _Box_title(ctx context.Context, field graphql.Collec ) } func (ec *executionContext) fieldContext_Box_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_x(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4048,7 +4064,7 @@ func (ec *executionContext) _Box_x(ctx context.Context, field graphql.CollectedF ) } func (ec *executionContext) fieldContext_Box_x(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Int") } func (ec *executionContext) _Box_y(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4071,7 +4087,7 @@ func (ec *executionContext) _Box_y(ctx context.Context, field graphql.CollectedF ) } func (ec *executionContext) fieldContext_Box_y(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Int") } func (ec *executionContext) _Box_w(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4094,7 +4110,7 @@ func (ec *executionContext) _Box_w(ctx context.Context, field graphql.CollectedF ) } func (ec *executionContext) fieldContext_Box_w(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Int") } func (ec *executionContext) _Box_h(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4117,7 +4133,7 @@ func (ec *executionContext) _Box_h(ctx context.Context, field graphql.CollectedF ) } func (ec *executionContext) fieldContext_Box_h(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Int") } func (ec *executionContext) _Box_z(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4140,7 +4156,7 @@ func (ec *executionContext) _Box_z(ctx context.Context, field graphql.CollectedF ) } func (ec *executionContext) fieldContext_Box_z(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Int") } func (ec *executionContext) _Box_framed(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4163,7 +4179,7 @@ func (ec *executionContext) _Box_framed(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Box_framed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Boolean") } func (ec *executionContext) _Box_shadow(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4186,7 +4202,7 @@ func (ec *executionContext) _Box_shadow(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Box_shadow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "String") } func (ec *executionContext) _Box_hideOnMobile(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4209,7 +4225,7 @@ func (ec *executionContext) _Box_hideOnMobile(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Box_hideOnMobile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Boolean") } func (ec *executionContext) _Box_adminOnly(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4232,7 +4248,7 @@ func (ec *executionContext) _Box_adminOnly(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Box_adminOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "Boolean") } func (ec *executionContext) _Box_componentId(ctx context.Context, field graphql.CollectedField, obj *models.Box) (ret graphql.Marshaler) { @@ -4255,7 +4271,7 @@ func (ec *executionContext) _Box_componentId(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Box_componentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Box", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Box", field, false, false, "ID") } func (ec *executionContext) _Component_id(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4278,7 +4294,7 @@ func (ec *executionContext) _Component_id(ctx context.Context, field graphql.Col ) } func (ec *executionContext) fieldContext_Component_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "ID") } func (ec *executionContext) _Component_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4301,7 +4317,7 @@ func (ec *executionContext) _Component_createdAt(ctx context.Context, field grap ) } func (ec *executionContext) fieldContext_Component_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Time") } func (ec *executionContext) _Component_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4324,7 +4340,7 @@ func (ec *executionContext) _Component_updatedAt(ctx context.Context, field grap ) } func (ec *executionContext) fieldContext_Component_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Time") } func (ec *executionContext) _Component_name(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4347,7 +4363,7 @@ func (ec *executionContext) _Component_name(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Component_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "String") } func (ec *executionContext) _Component_title(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4370,7 +4386,7 @@ func (ec *executionContext) _Component_title(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Component_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "String") } func (ec *executionContext) _Component_html(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4393,7 +4409,7 @@ func (ec *executionContext) _Component_html(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Component_html(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "String") } func (ec *executionContext) _Component_w(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4416,7 +4432,7 @@ func (ec *executionContext) _Component_w(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Component_w(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Int") } func (ec *executionContext) _Component_h(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4439,7 +4455,7 @@ func (ec *executionContext) _Component_h(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Component_h(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Int") } func (ec *executionContext) _Component_framed(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4462,7 +4478,7 @@ func (ec *executionContext) _Component_framed(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Component_framed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Boolean") } func (ec *executionContext) _Component_shadow(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4485,7 +4501,7 @@ func (ec *executionContext) _Component_shadow(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Component_shadow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "String") } func (ec *executionContext) _Component_adminOnly(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4508,7 +4524,7 @@ func (ec *executionContext) _Component_adminOnly(ctx context.Context, field grap ) } func (ec *executionContext) fieldContext_Component_adminOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, false, false, "Boolean") } func (ec *executionContext) _Component_uses(ctx context.Context, field graphql.CollectedField, obj *models.Component) (ret graphql.Marshaler) { @@ -4531,7 +4547,7 @@ func (ec *executionContext) _Component_uses(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Component_uses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Component", field, true, true, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Component", field, true, true, "Int") } func (ec *executionContext) _CoverLetter_id(ctx context.Context, field graphql.CollectedField, obj *models.CoverLetter) (ret graphql.Marshaler) { @@ -4554,7 +4570,7 @@ func (ec *executionContext) _CoverLetter_id(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_CoverLetter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverLetter", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("CoverLetter", field, false, false, "ID") } func (ec *executionContext) _CoverLetter_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.CoverLetter) (ret graphql.Marshaler) { @@ -4577,7 +4593,7 @@ func (ec *executionContext) _CoverLetter_createdAt(ctx context.Context, field gr ) } func (ec *executionContext) fieldContext_CoverLetter_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverLetter", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("CoverLetter", field, false, false, "Time") } func (ec *executionContext) _CoverLetter_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.CoverLetter) (ret graphql.Marshaler) { @@ -4600,7 +4616,7 @@ func (ec *executionContext) _CoverLetter_updatedAt(ctx context.Context, field gr ) } func (ec *executionContext) fieldContext_CoverLetter_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverLetter", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("CoverLetter", field, false, false, "Time") } func (ec *executionContext) _CoverLetter_name(ctx context.Context, field graphql.CollectedField, obj *models.CoverLetter) (ret graphql.Marshaler) { @@ -4623,7 +4639,7 @@ func (ec *executionContext) _CoverLetter_name(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_CoverLetter_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverLetter", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("CoverLetter", field, false, false, "String") } func (ec *executionContext) _CoverLetter_body(ctx context.Context, field graphql.CollectedField, obj *models.CoverLetter) (ret graphql.Marshaler) { @@ -4646,7 +4662,7 @@ func (ec *executionContext) _CoverLetter_body(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_CoverLetter_body(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverLetter", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("CoverLetter", field, false, false, "String") } func (ec *executionContext) _CoverSnippet_id(ctx context.Context, field graphql.CollectedField, obj *models.CoverSnippet) (ret graphql.Marshaler) { @@ -4669,7 +4685,7 @@ func (ec *executionContext) _CoverSnippet_id(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_CoverSnippet_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, "ID") } func (ec *executionContext) _CoverSnippet_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.CoverSnippet) (ret graphql.Marshaler) { @@ -4692,7 +4708,7 @@ func (ec *executionContext) _CoverSnippet_createdAt(ctx context.Context, field g ) } func (ec *executionContext) fieldContext_CoverSnippet_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, "Time") } func (ec *executionContext) _CoverSnippet_text(ctx context.Context, field graphql.CollectedField, obj *models.CoverSnippet) (ret graphql.Marshaler) { @@ -4715,7 +4731,7 @@ func (ec *executionContext) _CoverSnippet_text(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_CoverSnippet_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, "String") } func (ec *executionContext) _CoverSnippet_section(ctx context.Context, field graphql.CollectedField, obj *models.CoverSnippet) (ret graphql.Marshaler) { @@ -4738,7 +4754,7 @@ func (ec *executionContext) _CoverSnippet_section(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext_CoverSnippet_section(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("CoverSnippet", field, false, false, "String") } func (ec *executionContext) _Favorite_id(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4761,7 +4777,7 @@ func (ec *executionContext) _Favorite_id(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Favorite_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "ID") } func (ec *executionContext) _Favorite_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4784,7 +4800,7 @@ func (ec *executionContext) _Favorite_createdAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Favorite_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "Time") } func (ec *executionContext) _Favorite_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4807,7 +4823,7 @@ func (ec *executionContext) _Favorite_updatedAt(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Favorite_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "Time") } func (ec *executionContext) _Favorite_type(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4830,7 +4846,7 @@ func (ec *executionContext) _Favorite_type(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Favorite_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "String") } func (ec *executionContext) _Favorite_name(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4853,7 +4869,7 @@ func (ec *executionContext) _Favorite_name(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Favorite_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "String") } func (ec *executionContext) _Favorite_link(ctx context.Context, field graphql.CollectedField, obj *models.Favorite) (ret graphql.Marshaler) { @@ -4876,7 +4892,7 @@ func (ec *executionContext) _Favorite_link(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_Favorite_link(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Favorite", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Favorite", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -4899,7 +4915,7 @@ func (ec *executionContext) _GiteaFeedItem_avatarUrl(ctx context.Context, field ) } func (ec *executionContext) fieldContext_GiteaFeedItem_avatarUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_repoUrl(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -4922,7 +4938,7 @@ func (ec *executionContext) _GiteaFeedItem_repoUrl(ctx context.Context, field gr ) } func (ec *executionContext) fieldContext_GiteaFeedItem_repoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_repoName(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -4945,7 +4961,7 @@ func (ec *executionContext) _GiteaFeedItem_repoName(ctx context.Context, field g ) } func (ec *executionContext) fieldContext_GiteaFeedItem_repoName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_opType(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -4968,7 +4984,7 @@ func (ec *executionContext) _GiteaFeedItem_opType(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext_GiteaFeedItem_opType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_commitMessage(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -4991,7 +5007,7 @@ func (ec *executionContext) _GiteaFeedItem_commitMessage(ctx context.Context, fi ) } func (ec *executionContext) fieldContext_GiteaFeedItem_commitMessage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "String") } func (ec *executionContext) _GiteaFeedItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.GiteaFeedItem) (ret graphql.Marshaler) { @@ -5014,7 +5030,7 @@ func (ec *executionContext) _GiteaFeedItem_createdAt(ctx context.Context, field ) } func (ec *executionContext) fieldContext_GiteaFeedItem_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("GiteaFeedItem", field, false, false, "Time") } func (ec *executionContext) _Layout_id(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5037,7 +5053,7 @@ func (ec *executionContext) _Layout_id(ctx context.Context, field graphql.Collec ) } func (ec *executionContext) fieldContext_Layout_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, false, false, "ID") } func (ec *executionContext) _Layout_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5060,7 +5076,7 @@ func (ec *executionContext) _Layout_createdAt(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Layout_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, false, false, "Time") } func (ec *executionContext) _Layout_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5083,7 +5099,7 @@ func (ec *executionContext) _Layout_updatedAt(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Layout_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, false, false, "Time") } func (ec *executionContext) _Layout_name(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5106,7 +5122,7 @@ func (ec *executionContext) _Layout_name(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Layout_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, false, false, "String") } func (ec *executionContext) _Layout_sourcePage(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5129,7 +5145,7 @@ func (ec *executionContext) _Layout_sourcePage(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_Layout_sourcePage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, false, false, "String") } func (ec *executionContext) _Layout_boxCount(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5152,7 +5168,7 @@ func (ec *executionContext) _Layout_boxCount(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Layout_boxCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, true, true, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, true, true, "Int") } func (ec *executionContext) _Layout_hasBackground(ctx context.Context, field graphql.CollectedField, obj *models.Layout) (ret graphql.Marshaler) { @@ -5175,7 +5191,7 @@ func (ec *executionContext) _Layout_hasBackground(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext_Layout_hasBackground(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Layout", field, true, true, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Layout", field, true, true, "Boolean") } func (ec *executionContext) _Message_id(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5198,7 +5214,7 @@ func (ec *executionContext) _Message_id(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Message_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, false, false, "ID") } func (ec *executionContext) _Message_content(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5221,7 +5237,7 @@ func (ec *executionContext) _Message_content(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Message_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, false, false, "String") } func (ec *executionContext) _Message_authorId(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5244,7 +5260,7 @@ func (ec *executionContext) _Message_authorId(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Message_authorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, true, true, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, true, true, "Int") } func (ec *executionContext) _Message_fileUrl(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5267,7 +5283,7 @@ func (ec *executionContext) _Message_fileUrl(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Message_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, false, false, "String") } func (ec *executionContext) _Message_private(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5290,7 +5306,7 @@ func (ec *executionContext) _Message_private(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Message_private(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, false, false, "Boolean") } func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Message) (ret graphql.Marshaler) { @@ -5313,7 +5329,7 @@ func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_Message_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Message", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Message", field, false, false, "Time") } func (ec *executionContext) _Mutation_createActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { @@ -5437,7 +5453,7 @@ func (ec *executionContext) _Mutation_logout(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Mutation_logout(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Mutation", field, true, true, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Mutation", field, true, true, "Boolean") } func (ec *executionContext) _Mutation_refreshToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { @@ -7544,7 +7560,7 @@ func (ec *executionContext) _Page_id(ctx context.Context, field graphql.Collecte ) } func (ec *executionContext) fieldContext_Page_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "ID") } func (ec *executionContext) _Page_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Page) (ret graphql.Marshaler) { @@ -7567,7 +7583,7 @@ func (ec *executionContext) _Page_createdAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Page_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "Time") } func (ec *executionContext) _Page_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Page) (ret graphql.Marshaler) { @@ -7590,7 +7606,7 @@ func (ec *executionContext) _Page_updatedAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Page_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "Time") } func (ec *executionContext) _Page_slug(ctx context.Context, field graphql.CollectedField, obj *models.Page) (ret graphql.Marshaler) { @@ -7613,7 +7629,7 @@ func (ec *executionContext) _Page_slug(ctx context.Context, field graphql.Collec ) } func (ec *executionContext) fieldContext_Page_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "String") } func (ec *executionContext) _Page_title(ctx context.Context, field graphql.CollectedField, obj *models.Page) (ret graphql.Marshaler) { @@ -7636,7 +7652,7 @@ func (ec *executionContext) _Page_title(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Page_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "String") } func (ec *executionContext) _Page_adminOnly(ctx context.Context, field graphql.CollectedField, obj *models.Page) (ret graphql.Marshaler) { @@ -7659,7 +7675,7 @@ func (ec *executionContext) _Page_adminOnly(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Page_adminOnly(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Page", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Page", field, false, false, "Boolean") } func (ec *executionContext) _PermissionType_key(ctx context.Context, field graphql.CollectedField, obj *services.PermissionType) (ret graphql.Marshaler) { @@ -7682,7 +7698,7 @@ func (ec *executionContext) _PermissionType_key(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_PermissionType_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PermissionType", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("PermissionType", field, false, false, "String") } func (ec *executionContext) _PermissionType_label(ctx context.Context, field graphql.CollectedField, obj *services.PermissionType) (ret graphql.Marshaler) { @@ -7705,7 +7721,7 @@ func (ec *executionContext) _PermissionType_label(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext_PermissionType_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PermissionType", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("PermissionType", field, false, false, "String") } func (ec *executionContext) _PermissionType_path(ctx context.Context, field graphql.CollectedField, obj *services.PermissionType) (ret graphql.Marshaler) { @@ -7728,7 +7744,7 @@ func (ec *executionContext) _PermissionType_path(ctx context.Context, field grap ) } func (ec *executionContext) fieldContext_PermissionType_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PermissionType", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("PermissionType", field, false, false, "String") } func (ec *executionContext) _Place_id(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7751,7 +7767,7 @@ func (ec *executionContext) _Place_id(ctx context.Context, field graphql.Collect ) } func (ec *executionContext) fieldContext_Place_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "ID") } func (ec *executionContext) _Place_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7774,7 +7790,7 @@ func (ec *executionContext) _Place_createdAt(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Place_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "Time") } func (ec *executionContext) _Place_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7797,7 +7813,7 @@ func (ec *executionContext) _Place_updatedAt(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Place_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "Time") } func (ec *executionContext) _Place_title(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7820,7 +7836,7 @@ func (ec *executionContext) _Place_title(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Place_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_location(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7843,7 +7859,7 @@ func (ec *executionContext) _Place_location(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Place_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_notes(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7866,7 +7882,7 @@ func (ec *executionContext) _Place_notes(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Place_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_imageUrl(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7889,7 +7905,7 @@ func (ec *executionContext) _Place_imageUrl(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Place_imageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_category(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7912,7 +7928,7 @@ func (ec *executionContext) _Place_category(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Place_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_cost(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7935,7 +7951,7 @@ func (ec *executionContext) _Place_cost(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Place_cost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "String") } func (ec *executionContext) _Place_priority(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7958,7 +7974,7 @@ func (ec *executionContext) _Place_priority(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Place_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "Int") } func (ec *executionContext) _Place_done(ctx context.Context, field graphql.CollectedField, obj *models.Place) (ret graphql.Marshaler) { @@ -7981,7 +7997,7 @@ func (ec *executionContext) _Place_done(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Place_done(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Place", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Place", field, false, false, "Boolean") } func (ec *executionContext) _Post_id(ctx context.Context, field graphql.CollectedField, obj *models.Post) (ret graphql.Marshaler) { @@ -8004,7 +8020,7 @@ func (ec *executionContext) _Post_id(ctx context.Context, field graphql.Collecte ) } func (ec *executionContext) fieldContext_Post_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Post", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Post", field, false, false, "ID") } func (ec *executionContext) _Post_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Post) (ret graphql.Marshaler) { @@ -8027,7 +8043,7 @@ func (ec *executionContext) _Post_createdAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Post_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Post", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Post", field, false, false, "Time") } func (ec *executionContext) _Post_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Post) (ret graphql.Marshaler) { @@ -8050,7 +8066,7 @@ func (ec *executionContext) _Post_updatedAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_Post_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Post", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Post", field, false, false, "Time") } func (ec *executionContext) _Post_title(ctx context.Context, field graphql.CollectedField, obj *models.Post) (ret graphql.Marshaler) { @@ -8073,7 +8089,7 @@ func (ec *executionContext) _Post_title(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_Post_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Post", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Post", field, false, false, "String") } func (ec *executionContext) _Post_author(ctx context.Context, field graphql.CollectedField, obj *models.Post) (ret graphql.Marshaler) { @@ -8128,7 +8144,7 @@ func (ec *executionContext) _Post_content(ctx context.Context, field graphql.Col ) } func (ec *executionContext) fieldContext_Post_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Post", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("Post", field, false, false, "String") } func (ec *executionContext) _Query_activities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { @@ -8904,7 +8920,7 @@ func (ec *executionContext) _Query_spotifyNeedsReauth(ctx context.Context, field ) } func (ec *executionContext) fieldContext_Query_spotifyNeedsReauth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Query", field, true, true, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("Query", field, true, true, "Boolean") } func (ec *executionContext) _Query_steamStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { @@ -9143,10 +9159,10 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C }, nil, func(ctx context.Context, selections ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v) + return ec.marshalN__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v) }, true, - false, + true, ) } func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -9182,7 +9198,7 @@ func (ec *executionContext) _Rowing_id(ctx context.Context, field graphql.Collec ) } func (ec *executionContext) fieldContext_Rowing_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, false, false, "ID") } func (ec *executionContext) _Rowing_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9205,7 +9221,7 @@ func (ec *executionContext) _Rowing_createdAt(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_Rowing_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, false, false, "Time") } func (ec *executionContext) _Rowing_date(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9228,7 +9244,7 @@ func (ec *executionContext) _Rowing_date(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Rowing_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, false, false, "Time") } func (ec *executionContext) _Rowing_time(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9251,7 +9267,7 @@ func (ec *executionContext) _Rowing_time(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext_Rowing_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, true, true, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, true, true, "Int") } func (ec *executionContext) _Rowing_distance(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9274,7 +9290,7 @@ func (ec *executionContext) _Rowing_distance(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Rowing_distance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, true, true, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, true, true, "Int") } func (ec *executionContext) _Rowing_timePer500m(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9297,7 +9313,7 @@ func (ec *executionContext) _Rowing_timePer500m(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_Rowing_timePer500m(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, false, false, errors.New("field of type Float does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, false, false, "Float") } func (ec *executionContext) _Rowing_calories(ctx context.Context, field graphql.CollectedField, obj *models.Rowing) (ret graphql.Marshaler) { @@ -9320,7 +9336,7 @@ func (ec *executionContext) _Rowing_calories(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_Rowing_calories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Rowing", field, false, false, errors.New("field of type Float does not have child fields")) + return graphql.NewScalarFieldContext("Rowing", field, false, false, "Float") } func (ec *executionContext) _SpotifyAlbum_name(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyAlbum) (ret graphql.Marshaler) { @@ -9343,7 +9359,7 @@ func (ec *executionContext) _SpotifyAlbum_name(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_SpotifyAlbum_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyAlbum", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyAlbum", field, false, false, "String") } func (ec *executionContext) _SpotifyAlbum_images(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyAlbum) (ret graphql.Marshaler) { @@ -9398,7 +9414,7 @@ func (ec *executionContext) _SpotifyArtist_name(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_SpotifyArtist_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyArtist", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyArtist", field, false, false, "String") } func (ec *executionContext) _SpotifyImage_url(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyImage) (ret graphql.Marshaler) { @@ -9421,7 +9437,7 @@ func (ec *executionContext) _SpotifyImage_url(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_SpotifyImage_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyImage", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyImage", field, false, false, "String") } func (ec *executionContext) _SpotifyPlaying_playing(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyPlaying) (ret graphql.Marshaler) { @@ -9444,7 +9460,7 @@ func (ec *executionContext) _SpotifyPlaying_playing(ctx context.Context, field g ) } func (ec *executionContext) fieldContext_SpotifyPlaying_playing(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyPlaying", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyPlaying", field, false, false, "Boolean") } func (ec *executionContext) _SpotifyPlaying_track(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyPlaying) (ret graphql.Marshaler) { @@ -9531,7 +9547,7 @@ func (ec *executionContext) _SpotifyRecentItem_playedAt(ctx context.Context, fie ) } func (ec *executionContext) fieldContext_SpotifyRecentItem_playedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyRecentItem", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyRecentItem", field, false, false, "Time") } func (ec *executionContext) _SpotifyTrack_name(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyTrack) (ret graphql.Marshaler) { @@ -9554,7 +9570,7 @@ func (ec *executionContext) _SpotifyTrack_name(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext_SpotifyTrack_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SpotifyTrack", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SpotifyTrack", field, false, false, "String") } func (ec *executionContext) _SpotifyTrack_artists(ctx context.Context, field graphql.CollectedField, obj *model.SpotifyTrack) (ret graphql.Marshaler) { @@ -9641,7 +9657,7 @@ func (ec *executionContext) _SteamGame_appId(ctx context.Context, field graphql. ) } func (ec *executionContext) fieldContext_SteamGame_appId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamGame", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("SteamGame", field, false, false, "Int") } func (ec *executionContext) _SteamGame_name(ctx context.Context, field graphql.CollectedField, obj *model.SteamGame) (ret graphql.Marshaler) { @@ -9664,7 +9680,7 @@ func (ec *executionContext) _SteamGame_name(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_SteamGame_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamGame", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SteamGame", field, false, false, "String") } func (ec *executionContext) _SteamGame_playtime2Weeks(ctx context.Context, field graphql.CollectedField, obj *model.SteamGame) (ret graphql.Marshaler) { @@ -9687,7 +9703,7 @@ func (ec *executionContext) _SteamGame_playtime2Weeks(ctx context.Context, field ) } func (ec *executionContext) fieldContext_SteamGame_playtime2Weeks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamGame", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("SteamGame", field, false, false, "Int") } func (ec *executionContext) _SteamGame_playtimeForever(ctx context.Context, field graphql.CollectedField, obj *model.SteamGame) (ret graphql.Marshaler) { @@ -9710,7 +9726,7 @@ func (ec *executionContext) _SteamGame_playtimeForever(ctx context.Context, fiel ) } func (ec *executionContext) fieldContext_SteamGame_playtimeForever(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamGame", field, false, false, errors.New("field of type Int does not have child fields")) + return graphql.NewScalarFieldContext("SteamGame", field, false, false, "Int") } func (ec *executionContext) _SteamGame_headerImageUrl(ctx context.Context, field graphql.CollectedField, obj *model.SteamGame) (ret graphql.Marshaler) { @@ -9733,7 +9749,7 @@ func (ec *executionContext) _SteamGame_headerImageUrl(ctx context.Context, field ) } func (ec *executionContext) fieldContext_SteamGame_headerImageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamGame", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("SteamGame", field, false, false, "String") } func (ec *executionContext) _SteamStatus_online(ctx context.Context, field graphql.CollectedField, obj *model.SteamStatus) (ret graphql.Marshaler) { @@ -9756,7 +9772,7 @@ func (ec *executionContext) _SteamStatus_online(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext_SteamStatus_online(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("SteamStatus", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("SteamStatus", field, false, false, "Boolean") } func (ec *executionContext) _SteamStatus_recentGames(ctx context.Context, field graphql.CollectedField, obj *model.SteamStatus) (ret graphql.Marshaler) { @@ -9811,7 +9827,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ) } func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type ID does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "ID") } func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.User) (ret graphql.Marshaler) { @@ -9834,7 +9850,7 @@ func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "Time") } func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.User) (ret graphql.Marshaler) { @@ -9857,7 +9873,7 @@ func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Time does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "Time") } func (ec *executionContext) _User_username(ctx context.Context, field graphql.CollectedField, obj *models.User) (ret graphql.Marshaler) { @@ -9880,7 +9896,7 @@ func (ec *executionContext) _User_username(ctx context.Context, field graphql.Co ) } func (ec *executionContext) fieldContext_User_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "String") } func (ec *executionContext) _User_admin(ctx context.Context, field graphql.CollectedField, obj *models.User) (ret graphql.Marshaler) { @@ -9903,7 +9919,7 @@ func (ec *executionContext) _User_admin(ctx context.Context, field graphql.Colle ) } func (ec *executionContext) fieldContext_User_admin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "Boolean") } func (ec *executionContext) _User_permissions(ctx context.Context, field graphql.CollectedField, obj *models.User) (ret graphql.Marshaler) { @@ -9926,7 +9942,7 @@ func (ec *executionContext) _User_permissions(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext_User_permissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("User", field, false, false, "String") } func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { @@ -9949,7 +9965,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Directive", field, false, false, "String") } func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { @@ -9972,7 +9988,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ) } func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Directive", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Directive", field, true, false, "String") } func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { @@ -9995,7 +10011,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ) } func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("__Directive", field, false, false, "Boolean") } func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { @@ -10018,7 +10034,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ) } func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type __DirectiveLocation does not have child fields")) + return graphql.NewScalarFieldContext("__Directive", field, false, false, "__DirectiveLocation") } func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { @@ -10030,7 +10046,8 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql return ec.fieldContext___Directive_args(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Args, nil + fc := graphql.GetFieldContext(ctx) + return obj.VisibleArgs(fc.Args["includeDeprecated"].(bool)), nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { @@ -10044,7 +10061,7 @@ func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, f fc = &graphql.FieldContext{ Object: "__Directive", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return ec.childFields___InputValue(ctx, field) @@ -10084,7 +10101,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ) } func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__EnumValue", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__EnumValue", field, false, false, "String") } func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { @@ -10107,7 +10124,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ) } func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__EnumValue", field, true, false, "String") } func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { @@ -10130,7 +10147,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ) } func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("__EnumValue", field, true, false, "Boolean") } func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { @@ -10153,7 +10170,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ) } func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__EnumValue", field, true, false, "String") } func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { @@ -10176,7 +10193,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ) } func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Field", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Field", field, false, false, "String") } func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { @@ -10199,7 +10216,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ) } func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Field", field, true, false, "String") } func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { @@ -10211,7 +10228,8 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col return ec.fieldContext___Field_args(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Args, nil + fc := graphql.GetFieldContext(ctx) + return obj.VisibleArgs(fc.Args["includeDeprecated"].(bool)), nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { @@ -10225,7 +10243,7 @@ func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field fc = &graphql.FieldContext{ Object: "__Field", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return ec.childFields___InputValue(ctx, field) @@ -10297,7 +10315,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("__Field", field, true, false, "Boolean") } func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { @@ -10320,7 +10338,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ) } func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Field", field, true, false, "String") } func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { @@ -10343,7 +10361,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ) } func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__InputValue", field, false, false, "String") } func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { @@ -10366,7 +10384,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ) } func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__InputValue", field, true, false, "String") } func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { @@ -10421,7 +10439,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ) } func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__InputValue", field, false, false, "String") } func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { @@ -10444,7 +10462,7 @@ func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, fiel ) } func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("__InputValue", field, true, false, "Boolean") } func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { @@ -10467,7 +10485,7 @@ func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, ) } func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__InputValue", field, true, false, "String") } func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { @@ -10490,7 +10508,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ) } func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Schema", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Schema", field, true, false, "String") } func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { @@ -10673,7 +10691,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type __TypeKind does not have child fields")) + return graphql.NewScalarFieldContext("__Type", field, true, false, "__TypeKind") } func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { @@ -10696,7 +10714,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ) } func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Type", field, true, false, "String") } func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { @@ -10719,7 +10737,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ) } func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Type", field, true, false, "String") } func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { @@ -10742,7 +10760,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ) } func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields")) + return graphql.NewScalarFieldContext("__Type", field, true, false, "String") } func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { @@ -10906,7 +10924,8 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph return ec.fieldContext___Type_inputFields(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InputFields(), nil + fc := graphql.GetFieldContext(ctx) + return obj.VisibleInputFields(fc.Args["includeDeprecated"].(bool)), nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { @@ -10916,7 +10935,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "__Type", Field: field, @@ -10926,6 +10945,17 @@ func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, f return ec.childFields___InputValue(ctx, field) }, } + 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_inputFields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } @@ -10981,7 +11011,7 @@ func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.C ) } func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type Boolean does not have child fields")) + return graphql.NewScalarFieldContext("__Type", field, true, false, "Boolean") } // endregion **************************** field.gotpl ***************************** @@ -11032,6 +11062,18 @@ func (ec *executionContext) unmarshalInputBackgroundInput(ctx context.Context, o return it, nil } +// UnmarshalBackgroundInput unmarshals raw into the BackgroundInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalBackgroundInput(ctx context.Context, raw any) (model.BackgroundInput, error) { + var out model.BackgroundInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "BackgroundInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateActivityInput(ctx context.Context, obj any) (model.CreateActivityInput, error) { var it model.CreateActivityInput if obj == nil { @@ -11076,6 +11118,18 @@ func (ec *executionContext) unmarshalInputCreateActivityInput(ctx context.Contex return it, nil } +// UnmarshalCreateActivityInput unmarshals raw into the CreateActivityInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateActivityInput(ctx context.Context, raw any) (model.CreateActivityInput, error) { + var out model.CreateActivityInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateActivityInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateBookmarkInput(ctx context.Context, obj any) (model.CreateBookmarkInput, error) { var it model.CreateBookmarkInput if obj == nil { @@ -11120,6 +11174,18 @@ func (ec *executionContext) unmarshalInputCreateBookmarkInput(ctx context.Contex return it, nil } +// UnmarshalCreateBookmarkInput unmarshals raw into the CreateBookmarkInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateBookmarkInput(ctx context.Context, raw any) (model.CreateBookmarkInput, error) { + var out model.CreateBookmarkInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateBookmarkInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateBoxInput(ctx context.Context, obj any) (model.CreateBoxInput, error) { var it model.CreateBoxInput if obj == nil { @@ -11248,6 +11314,18 @@ func (ec *executionContext) unmarshalInputCreateBoxInput(ctx context.Context, ob return it, nil } +// UnmarshalCreateBoxInput unmarshals raw into the CreateBoxInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateBoxInput(ctx context.Context, raw any) (model.CreateBoxInput, error) { + var out model.CreateBoxInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateBoxInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateComponentInput(ctx context.Context, obj any) (model.CreateComponentInput, error) { var it model.CreateComponentInput if obj == nil { @@ -11327,6 +11405,18 @@ func (ec *executionContext) unmarshalInputCreateComponentInput(ctx context.Conte return it, nil } +// UnmarshalCreateComponentInput unmarshals raw into the CreateComponentInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateComponentInput(ctx context.Context, raw any) (model.CreateComponentInput, error) { + var out model.CreateComponentInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateComponentInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateCoverLetterInput(ctx context.Context, obj any) (model.CreateCoverLetterInput, error) { var it model.CreateCoverLetterInput if obj == nil { @@ -11364,6 +11454,18 @@ func (ec *executionContext) unmarshalInputCreateCoverLetterInput(ctx context.Con return it, nil } +// UnmarshalCreateCoverLetterInput unmarshals raw into the CreateCoverLetterInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateCoverLetterInput(ctx context.Context, raw any) (model.CreateCoverLetterInput, error) { + var out model.CreateCoverLetterInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateCoverLetterInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateCoverSnippetInput(ctx context.Context, obj any) (model.CreateCoverSnippetInput, error) { var it model.CreateCoverSnippetInput if obj == nil { @@ -11401,6 +11503,18 @@ func (ec *executionContext) unmarshalInputCreateCoverSnippetInput(ctx context.Co return it, nil } +// UnmarshalCreateCoverSnippetInput unmarshals raw into the CreateCoverSnippetInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateCoverSnippetInput(ctx context.Context, raw any) (model.CreateCoverSnippetInput, error) { + var out model.CreateCoverSnippetInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateCoverSnippetInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateFavoriteInput(ctx context.Context, obj any) (model.CreateFavoriteInput, error) { var it model.CreateFavoriteInput if obj == nil { @@ -11445,6 +11559,18 @@ func (ec *executionContext) unmarshalInputCreateFavoriteInput(ctx context.Contex return it, nil } +// UnmarshalCreateFavoriteInput unmarshals raw into the CreateFavoriteInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateFavoriteInput(ctx context.Context, raw any) (model.CreateFavoriteInput, error) { + var out model.CreateFavoriteInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateFavoriteInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateLayoutInput(ctx context.Context, obj any) (model.CreateLayoutInput, error) { var it model.CreateLayoutInput if obj == nil { @@ -11482,6 +11608,18 @@ func (ec *executionContext) unmarshalInputCreateLayoutInput(ctx context.Context, return it, nil } +// UnmarshalCreateLayoutInput unmarshals raw into the CreateLayoutInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateLayoutInput(ctx context.Context, raw any) (model.CreateLayoutInput, error) { + var out model.CreateLayoutInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateLayoutInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreatePageInput(ctx context.Context, obj any) (model.CreatePageInput, error) { var it model.CreatePageInput if obj == nil { @@ -11526,6 +11664,18 @@ func (ec *executionContext) unmarshalInputCreatePageInput(ctx context.Context, o return it, nil } +// UnmarshalCreatePageInput unmarshals raw into the CreatePageInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreatePageInput(ctx context.Context, raw any) (model.CreatePageInput, error) { + var out model.CreatePageInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreatePageInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreatePlaceInput(ctx context.Context, obj any) (model.CreatePlaceInput, error) { var it model.CreatePlaceInput if obj == nil { @@ -11605,6 +11755,18 @@ func (ec *executionContext) unmarshalInputCreatePlaceInput(ctx context.Context, return it, nil } +// UnmarshalCreatePlaceInput unmarshals raw into the CreatePlaceInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreatePlaceInput(ctx context.Context, raw any) (model.CreatePlaceInput, error) { + var out model.CreatePlaceInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreatePlaceInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreatePostInput(ctx context.Context, obj any) (model.CreatePostInput, error) { var it model.CreatePostInput if obj == nil { @@ -11642,6 +11804,18 @@ func (ec *executionContext) unmarshalInputCreatePostInput(ctx context.Context, o return it, nil } +// UnmarshalCreatePostInput unmarshals raw into the CreatePostInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreatePostInput(ctx context.Context, raw any) (model.CreatePostInput, error) { + var out model.CreatePostInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreatePostInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (model.CreateUserInput, error) { var it model.CreateUserInput if obj == nil { @@ -11679,6 +11853,18 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, nil } +// UnmarshalCreateUserInput unmarshals raw into the CreateUserInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalCreateUserInput(ctx context.Context, raw any) (model.CreateUserInput, error) { + var out model.CreateUserInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "CreateUserInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputLoginInput(ctx context.Context, obj any) (model.LoginInput, error) { var it model.LoginInput if obj == nil { @@ -11716,6 +11902,18 @@ func (ec *executionContext) unmarshalInputLoginInput(ctx context.Context, obj an return it, nil } +// UnmarshalLoginInput unmarshals raw into the LoginInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalLoginInput(ctx context.Context, raw any) (model.LoginInput, error) { + var out model.LoginInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "LoginInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdateBoxInput(ctx context.Context, obj any) (model.UpdateBoxInput, error) { var it model.UpdateBoxInput if obj == nil { @@ -11823,6 +12021,18 @@ func (ec *executionContext) unmarshalInputUpdateBoxInput(ctx context.Context, ob return it, nil } +// UnmarshalUpdateBoxInput unmarshals raw into the UpdateBoxInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdateBoxInput(ctx context.Context, raw any) (model.UpdateBoxInput, error) { + var out model.UpdateBoxInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdateBoxInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdateComponentInput(ctx context.Context, obj any) (model.UpdateComponentInput, error) { var it model.UpdateComponentInput if obj == nil { @@ -11902,6 +12112,18 @@ func (ec *executionContext) unmarshalInputUpdateComponentInput(ctx context.Conte return it, nil } +// UnmarshalUpdateComponentInput unmarshals raw into the UpdateComponentInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdateComponentInput(ctx context.Context, raw any) (model.UpdateComponentInput, error) { + var out model.UpdateComponentInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdateComponentInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdateCoverLetterInput(ctx context.Context, obj any) (model.UpdateCoverLetterInput, error) { var it model.UpdateCoverLetterInput if obj == nil { @@ -11939,6 +12161,18 @@ func (ec *executionContext) unmarshalInputUpdateCoverLetterInput(ctx context.Con return it, nil } +// UnmarshalUpdateCoverLetterInput unmarshals raw into the UpdateCoverLetterInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdateCoverLetterInput(ctx context.Context, raw any) (model.UpdateCoverLetterInput, error) { + var out model.UpdateCoverLetterInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdateCoverLetterInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdateCoverSnippetInput(ctx context.Context, obj any) (model.UpdateCoverSnippetInput, error) { var it model.UpdateCoverSnippetInput if obj == nil { @@ -11976,6 +12210,18 @@ func (ec *executionContext) unmarshalInputUpdateCoverSnippetInput(ctx context.Co return it, nil } +// UnmarshalUpdateCoverSnippetInput unmarshals raw into the UpdateCoverSnippetInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdateCoverSnippetInput(ctx context.Context, raw any) (model.UpdateCoverSnippetInput, error) { + var out model.UpdateCoverSnippetInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdateCoverSnippetInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdateLayoutInput(ctx context.Context, obj any) (model.UpdateLayoutInput, error) { var it model.UpdateLayoutInput if obj == nil { @@ -12006,6 +12252,18 @@ func (ec *executionContext) unmarshalInputUpdateLayoutInput(ctx context.Context, return it, nil } +// UnmarshalUpdateLayoutInput unmarshals raw into the UpdateLayoutInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdateLayoutInput(ctx context.Context, raw any) (model.UpdateLayoutInput, error) { + var out model.UpdateLayoutInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdateLayoutInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdatePageInput(ctx context.Context, obj any) (model.UpdatePageInput, error) { var it model.UpdatePageInput if obj == nil { @@ -12050,6 +12308,18 @@ func (ec *executionContext) unmarshalInputUpdatePageInput(ctx context.Context, o return it, nil } +// UnmarshalUpdatePageInput unmarshals raw into the UpdatePageInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdatePageInput(ctx context.Context, raw any) (model.UpdatePageInput, error) { + var out model.UpdatePageInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdatePageInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdatePlaceInput(ctx context.Context, obj any) (model.UpdatePlaceInput, error) { var it model.UpdatePlaceInput if obj == nil { @@ -12129,6 +12399,18 @@ func (ec *executionContext) unmarshalInputUpdatePlaceInput(ctx context.Context, return it, nil } +// UnmarshalUpdatePlaceInput unmarshals raw into the UpdatePlaceInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdatePlaceInput(ctx context.Context, raw any) (model.UpdatePlaceInput, error) { + var out model.UpdatePlaceInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdatePlaceInput", raw, &out) + return out, err +} + func (ec *executionContext) unmarshalInputUpdatePostInput(ctx context.Context, obj any) (model.UpdatePostInput, error) { var it model.UpdatePostInput if obj == nil { @@ -12166,6 +12448,18 @@ func (ec *executionContext) unmarshalInputUpdatePostInput(ctx context.Context, o return it, nil } +// UnmarshalUpdatePostInput unmarshals raw into the UpdatePostInput input type, using the +// unmarshaler bound to ctx's request. Call it from a resolver to decode an input +// object that was not passed as a field argument. +// +// ctx must come from a gqlgen request; outside one there is no unmarshaler to use +// and the returned error says so. +func UnmarshalUpdatePostInput(ctx context.Context, raw any) (model.UpdatePostInput, error) { + var out model.UpdatePostInput + err := graphql.UnmarshalNamedInputFromContext(ctx, "UpdatePostInput", raw, &out) + return out, err +} + // endregion **************************** input.gotpl ***************************** // region ************************** interface.gotpl *************************** @@ -12180,8 +12474,7 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, activityImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12225,14 +12518,10 @@ func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12243,8 +12532,7 @@ func (ec *executionContext) _AuthPayload(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, authPayloadImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12263,14 +12551,10 @@ func (ec *executionContext) _AuthPayload(ctx context.Context, sel ast.SelectionS return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12281,8 +12565,7 @@ func (ec *executionContext) _Background(ctx context.Context, sel ast.SelectionSe fields := graphql.CollectFields(ec.OperationContext, sel, backgroundImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12326,14 +12609,10 @@ func (ec *executionContext) _Background(ctx context.Context, sel ast.SelectionSe return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12344,8 +12623,7 @@ func (ec *executionContext) _Bookmark(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, bookmarkImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12389,14 +12667,10 @@ func (ec *executionContext) _Bookmark(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12407,8 +12681,7 @@ func (ec *executionContext) _Box(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, boxImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12512,14 +12785,10 @@ func (ec *executionContext) _Box(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12530,8 +12799,7 @@ func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet fields := graphql.CollectFields(ec.OperationContext, sel, componentImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12592,43 +12860,11 @@ func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet atomic.AddUint32(&out.Invalids, 1) } case "uses": - 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._Component_uses(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Component_uses(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12638,14 +12874,10 @@ func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12656,8 +12888,7 @@ func (ec *executionContext) _CoverLetter(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, coverLetterImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12696,14 +12927,10 @@ func (ec *executionContext) _CoverLetter(ctx context.Context, sel ast.SelectionS return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12714,8 +12941,7 @@ func (ec *executionContext) _CoverSnippet(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, coverSnippetImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12749,14 +12975,10 @@ func (ec *executionContext) _CoverSnippet(ctx context.Context, sel ast.Selection return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12767,8 +12989,7 @@ func (ec *executionContext) _Favorite(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, favoriteImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12812,14 +13033,10 @@ func (ec *executionContext) _Favorite(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12830,8 +13047,7 @@ func (ec *executionContext) _GiteaFeedItem(ctx context.Context, sel ast.Selectio fields := graphql.CollectFields(ec.OperationContext, sel, giteaFeedItemImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12875,14 +13091,10 @@ func (ec *executionContext) _GiteaFeedItem(ctx context.Context, sel ast.Selectio return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -12893,8 +13105,7 @@ func (ec *executionContext) _Layout(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, layoutImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -12925,81 +13136,17 @@ func (ec *executionContext) _Layout(ctx context.Context, sel ast.SelectionSet, o atomic.AddUint32(&out.Invalids, 1) } case "boxCount": - 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._Layout_boxCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Layout_boxCount(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "hasBackground": - 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._Layout_hasBackground(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Layout_hasBackground(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -13009,14 +13156,10 @@ func (ec *executionContext) _Layout(ctx context.Context, sel ast.SelectionSet, o return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13027,8 +13170,7 @@ func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, messageImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -13044,43 +13186,11 @@ func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, atomic.AddUint32(&out.Invalids, 1) } case "authorId": - 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._Message_authorId(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Message_authorId(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "fileUrl": out.Values[i] = ec._Message_fileUrl(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { @@ -13105,14 +13215,10 @@ func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13126,8 +13232,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) }) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -13426,14 +13531,10 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13444,8 +13545,7 @@ func (ec *executionContext) _Page(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, pageImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -13489,14 +13589,10 @@ func (ec *executionContext) _Page(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13507,8 +13603,7 @@ func (ec *executionContext) _PermissionType(ctx context.Context, sel ast.Selecti fields := graphql.CollectFields(ec.OperationContext, sel, permissionTypeImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -13537,14 +13632,10 @@ func (ec *executionContext) _PermissionType(ctx context.Context, sel ast.Selecti return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13555,8 +13646,7 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob fields := graphql.CollectFields(ec.OperationContext, sel, placeImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -13625,14 +13715,10 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13643,8 +13729,7 @@ func (ec *executionContext) _Post(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, postImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -13688,14 +13773,10 @@ func (ec *executionContext) _Post(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -13709,8 +13790,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -13721,555 +13801,155 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "__typename": out.Values[i] = graphql.MarshalString("Query") case "activities": - 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_activities(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_activities(ctx, field) + }) case "me": - 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_me(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_me(ctx, field) + }) case "background": - 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_background(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_background(ctx, field) + }) case "bookmarks": - 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_bookmarks(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_bookmarks(ctx, field) + }) case "boxes": - 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_boxes(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_boxes(ctx, field) + }) case "components": - 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_components(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_components(ctx, field) + }) case "coverLetters": - 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_coverLetters(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_coverLetters(ctx, field) + }) case "coverSnippets": - 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_coverSnippets(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_coverSnippets(ctx, field) + }) case "favorites": - 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_favorites(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_favorites(ctx, field) + }) case "giteaFeed": - 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_giteaFeed(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_giteaFeed(ctx, field) + }) case "layouts": - 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_layouts(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_layouts(ctx, field) + }) case "messages": - 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_messages(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_messages(ctx, field) + }) case "pages": - 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_pages(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_pages(ctx, field) + }) case "page": - 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_page(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_page(ctx, field) + }) case "places": - 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_places(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_places(ctx, field) + }) case "posts": - 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_posts(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_posts(ctx, field) + }) case "post": - 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_post(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_post(ctx, field) + }) case "rowingSessions": - 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_rowingSessions(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_rowingSessions(ctx, field) + }) case "spotifyListening": - 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_spotifyListening(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_spotifyListening(ctx, field) + }) case "spotifyRecent": - 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_spotifyRecent(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_spotifyRecent(ctx, field) + }) case "spotifyNeedsReauth": - 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_spotifyNeedsReauth(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_spotifyNeedsReauth(ctx, field) + }) case "steamStatus": - 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_steamStatus(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_steamStatus(ctx, field) + }) case "users": - 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_users(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_users(ctx, field) + }) case "user": - 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_user(ctx, field) - if res == graphql.RequiredNull { - 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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, false, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_user(ctx, field) + }) case "permissionTypes": - 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_permissionTypes(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) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.ResolveRootConcurrently(innerCtx, ec.OperationContext, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Query_permissionTypes(ctx, field) + }) case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) @@ -14281,7 +13961,7 @@ 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___schema(ctx, field) }) - if out.Values[i] == graphql.RequiredNull { + if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } default: @@ -14293,14 +13973,10 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14311,8 +13987,7 @@ func (ec *executionContext) _Rowing(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, rowingImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14333,81 +14008,17 @@ func (ec *executionContext) _Rowing(ctx context.Context, sel ast.SelectionSet, o atomic.AddUint32(&out.Invalids, 1) } case "time": - 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._Rowing_time(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Rowing_time(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "distance": - 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._Rowing_distance(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) + out.ResolveConcurrently(ec.OperationContext, &deferred, i, + true, true, + func(ctx context.Context) graphql.Marshaler { + return ec._Rowing_distance(ctx, field, obj) }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "timePer500m": out.Values[i] = ec._Rowing_timePer500m(ctx, field, obj) if out.Values[i] == graphql.Null { @@ -14427,14 +14038,10 @@ func (ec *executionContext) _Rowing(ctx context.Context, sel ast.SelectionSet, o return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14445,8 +14052,7 @@ func (ec *executionContext) _SpotifyAlbum(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, spotifyAlbumImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14470,14 +14076,10 @@ func (ec *executionContext) _SpotifyAlbum(ctx context.Context, sel ast.Selection return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14488,8 +14090,7 @@ func (ec *executionContext) _SpotifyArtist(ctx context.Context, sel ast.Selectio fields := graphql.CollectFields(ec.OperationContext, sel, spotifyArtistImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14508,14 +14109,10 @@ func (ec *executionContext) _SpotifyArtist(ctx context.Context, sel ast.Selectio return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14526,8 +14123,7 @@ func (ec *executionContext) _SpotifyImage(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, spotifyImageImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14546,14 +14142,10 @@ func (ec *executionContext) _SpotifyImage(ctx context.Context, sel ast.Selection return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14564,8 +14156,7 @@ func (ec *executionContext) _SpotifyPlaying(ctx context.Context, sel ast.Selecti fields := graphql.CollectFields(ec.OperationContext, sel, spotifyPlayingImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14589,14 +14180,10 @@ func (ec *executionContext) _SpotifyPlaying(ctx context.Context, sel ast.Selecti return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14607,8 +14194,7 @@ func (ec *executionContext) _SpotifyRecentItem(ctx context.Context, sel ast.Sele fields := graphql.CollectFields(ec.OperationContext, sel, spotifyRecentItemImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14632,14 +14218,10 @@ func (ec *executionContext) _SpotifyRecentItem(ctx context.Context, sel ast.Sele return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14650,8 +14232,7 @@ func (ec *executionContext) _SpotifyTrack(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, spotifyTrackImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14680,14 +14261,10 @@ func (ec *executionContext) _SpotifyTrack(ctx context.Context, sel ast.Selection return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14698,8 +14275,7 @@ func (ec *executionContext) _SteamGame(ctx context.Context, sel ast.SelectionSet fields := graphql.CollectFields(ec.OperationContext, sel, steamGameImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14738,14 +14314,10 @@ func (ec *executionContext) _SteamGame(ctx context.Context, sel ast.SelectionSet return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14756,8 +14328,7 @@ func (ec *executionContext) _SteamStatus(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, steamStatusImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14781,14 +14352,10 @@ func (ec *executionContext) _SteamStatus(ctx context.Context, sel ast.SelectionS return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14799,8 +14366,7 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14844,14 +14410,10 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14862,8 +14424,7 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14902,14 +14463,10 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14920,8 +14477,7 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -14955,14 +14511,10 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -14973,8 +14525,7 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -15018,14 +14569,10 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -15036,8 +14583,7 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -15081,14 +14627,10 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -15099,8 +14641,7 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -15144,14 +14685,10 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -15162,8 +14699,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) out := graphql.NewFieldSet(fields) - deferredFieldSet := graphql.NewFieldSet(nil) - deferLabelToView := make(map[string]*graphql.FieldSetView) + deferred := graphql.NewDeferredGroup(ctx) for i, field := range fields { switch field.Name { case "__typename": @@ -15232,14 +14768,10 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o return graphql.Null } - atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) - - ec.ProcessDeferredGroup(graphql.DeferredGroup{ - Defers: deferLabelToView, - Path: graphql.GetPath(ctx), - FieldSet: deferredFieldSet, - Context: ctx, - }) + if n := len(deferred.Defers); n > 0 { + atomic.AddInt32(&ec.Deferred, int32(min(n, math.MaxInt32))) + ec.ProcessDeferredGroup(deferred) + } return out } @@ -15266,9 +14798,7 @@ func (ec *executionContext) marshalNActivity2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbac func (ec *executionContext) marshalNActivity2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐActivity(ctx context.Context, sel ast.SelectionSet, v *models.Activity) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Activity!") return graphql.Null } return ec._Activity(ctx, sel, v) @@ -15276,9 +14806,7 @@ func (ec *executionContext) marshalNActivity2ᚖadamᚑfrenchᚗcoᚗukᚋbacken func (ec *executionContext) marshalNAuthPayload2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐAuthPayload(ctx context.Context, sel ast.SelectionSet, v *model.AuthPayload) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "AuthPayload!") return graphql.Null } return ec._AuthPayload(ctx, sel, v) @@ -15286,9 +14814,7 @@ func (ec *executionContext) marshalNAuthPayload2ᚖadamᚑfrenchᚗcoᚗukᚋbac func (ec *executionContext) marshalNBackground2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐBackground(ctx context.Context, sel ast.SelectionSet, v *models.Background) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Background!") return graphql.Null } return ec._Background(ctx, sel, v) @@ -15317,9 +14843,7 @@ func (ec *executionContext) marshalNBookmark2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbac func (ec *executionContext) marshalNBookmark2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐBookmark(ctx context.Context, sel ast.SelectionSet, v *models.Bookmark) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Bookmark!") return graphql.Null } return ec._Bookmark(ctx, sel, v) @@ -15334,9 +14858,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se _ = sel res := graphql.MarshalBoolean(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "Boolean!") } return res } @@ -15359,9 +14881,7 @@ func (ec *executionContext) marshalNBox2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbackend func (ec *executionContext) marshalNBox2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐBox(ctx context.Context, sel ast.SelectionSet, v *models.Box) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Box!") return graphql.Null } return ec._Box(ctx, sel, v) @@ -15385,9 +14905,7 @@ func (ec *executionContext) marshalNComponent2ᚕᚖadamᚑfrenchᚗcoᚗukᚋba func (ec *executionContext) marshalNComponent2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐComponent(ctx context.Context, sel ast.SelectionSet, v *models.Component) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Component!") return graphql.Null } return ec._Component(ctx, sel, v) @@ -15411,9 +14929,7 @@ func (ec *executionContext) marshalNCoverLetter2ᚕᚖadamᚑfrenchᚗcoᚗukᚋ func (ec *executionContext) marshalNCoverLetter2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐCoverLetter(ctx context.Context, sel ast.SelectionSet, v *models.CoverLetter) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "CoverLetter!") return graphql.Null } return ec._CoverLetter(ctx, sel, v) @@ -15437,9 +14953,7 @@ func (ec *executionContext) marshalNCoverSnippet2ᚕᚖadamᚑfrenchᚗcoᚗuk func (ec *executionContext) marshalNCoverSnippet2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐCoverSnippet(ctx context.Context, sel ast.SelectionSet, v *models.CoverSnippet) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "CoverSnippet!") return graphql.Null } return ec._CoverSnippet(ctx, sel, v) @@ -15523,9 +15037,7 @@ func (ec *executionContext) marshalNFavorite2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbac func (ec *executionContext) marshalNFavorite2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐFavorite(ctx context.Context, sel ast.SelectionSet, v *models.Favorite) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Favorite!") return graphql.Null } return ec._Favorite(ctx, sel, v) @@ -15540,9 +15052,7 @@ func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.S _ = sel res := graphql.MarshalFloatContext(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "Float!") } return graphql.WrapContextMarshaler(ctx, res) } @@ -15556,9 +15066,7 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio _ = sel res := graphql.MarshalIntID(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "ID!") } return res } @@ -15572,9 +15080,7 @@ func (ec *executionContext) marshalNID2uint(ctx context.Context, sel ast.Selecti _ = sel res := graphql.MarshalUintID(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "ID!") } return res } @@ -15588,9 +15094,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti _ = sel res := graphql.MarshalInt(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "Int!") } return res } @@ -15613,9 +15117,7 @@ func (ec *executionContext) marshalNLayout2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbacke func (ec *executionContext) marshalNLayout2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐLayout(ctx context.Context, sel ast.SelectionSet, v *models.Layout) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Layout!") return graphql.Null } return ec._Layout(ctx, sel, v) @@ -15644,9 +15146,7 @@ func (ec *executionContext) marshalNMessage2ᚕᚖadamᚑfrenchᚗcoᚗukᚋback func (ec *executionContext) marshalNMessage2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐMessage(ctx context.Context, sel ast.SelectionSet, v *models.Message) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Message!") return graphql.Null } return ec._Message(ctx, sel, v) @@ -15670,9 +15170,7 @@ func (ec *executionContext) marshalNPage2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbackend func (ec *executionContext) marshalNPage2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐPage(ctx context.Context, sel ast.SelectionSet, v *models.Page) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Page!") return graphql.Null } return ec._Page(ctx, sel, v) @@ -15696,9 +15194,7 @@ func (ec *executionContext) marshalNPermissionType2ᚕᚖadamᚑfrenchᚗcoᚗuk func (ec *executionContext) marshalNPermissionType2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋservicesᚐPermissionType(ctx context.Context, sel ast.SelectionSet, v *services.PermissionType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "PermissionType!") return graphql.Null } return ec._PermissionType(ctx, sel, v) @@ -15722,9 +15218,7 @@ func (ec *executionContext) marshalNPlace2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbacken func (ec *executionContext) marshalNPlace2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐPlace(ctx context.Context, sel ast.SelectionSet, v *models.Place) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Place!") return graphql.Null } return ec._Place(ctx, sel, v) @@ -15748,9 +15242,7 @@ func (ec *executionContext) marshalNPost2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbackend func (ec *executionContext) marshalNPost2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐPost(ctx context.Context, sel ast.SelectionSet, v *models.Post) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Post!") return graphql.Null } return ec._Post(ctx, sel, v) @@ -15774,9 +15266,7 @@ func (ec *executionContext) marshalNRowing2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbacke func (ec *executionContext) marshalNRowing2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐRowing(ctx context.Context, sel ast.SelectionSet, v *models.Rowing) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "Rowing!") return graphql.Null } return ec._Rowing(ctx, sel, v) @@ -15784,9 +15274,7 @@ func (ec *executionContext) marshalNRowing2ᚖadamᚑfrenchᚗcoᚗukᚋbackend func (ec *executionContext) marshalNSpotifyAlbum2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSpotifyAlbum(ctx context.Context, sel ast.SelectionSet, v *model.SpotifyAlbum) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SpotifyAlbum!") return graphql.Null } return ec._SpotifyAlbum(ctx, sel, v) @@ -15810,9 +15298,7 @@ func (ec *executionContext) marshalNSpotifyArtist2ᚕᚖadamᚑfrenchᚗcoᚗuk func (ec *executionContext) marshalNSpotifyArtist2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSpotifyArtist(ctx context.Context, sel ast.SelectionSet, v *model.SpotifyArtist) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SpotifyArtist!") return graphql.Null } return ec._SpotifyArtist(ctx, sel, v) @@ -15836,9 +15322,7 @@ func (ec *executionContext) marshalNSpotifyImage2ᚕᚖadamᚑfrenchᚗcoᚗuk func (ec *executionContext) marshalNSpotifyImage2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSpotifyImage(ctx context.Context, sel ast.SelectionSet, v *model.SpotifyImage) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SpotifyImage!") return graphql.Null } return ec._SpotifyImage(ctx, sel, v) @@ -15846,9 +15330,7 @@ func (ec *executionContext) marshalNSpotifyImage2ᚖadamᚑfrenchᚗcoᚗukᚋba func (ec *executionContext) marshalNSpotifyRecentItem2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSpotifyRecentItem(ctx context.Context, sel ast.SelectionSet, v *model.SpotifyRecentItem) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SpotifyRecentItem!") return graphql.Null } return ec._SpotifyRecentItem(ctx, sel, v) @@ -15856,9 +15338,7 @@ func (ec *executionContext) marshalNSpotifyRecentItem2ᚖadamᚑfrenchᚗcoᚗuk func (ec *executionContext) marshalNSpotifyTrack2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSpotifyTrack(ctx context.Context, sel ast.SelectionSet, v *model.SpotifyTrack) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SpotifyTrack!") return graphql.Null } return ec._SpotifyTrack(ctx, sel, v) @@ -15882,9 +15362,7 @@ func (ec *executionContext) marshalNSteamGame2ᚕᚖadamᚑfrenchᚗcoᚗukᚋba func (ec *executionContext) marshalNSteamGame2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋgraphᚋmodelᚐSteamGame(ctx context.Context, sel ast.SelectionSet, v *model.SteamGame) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "SteamGame!") return graphql.Null } return ec._SteamGame(ctx, sel, v) @@ -15899,9 +15377,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S _ = sel res := graphql.MarshalString(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "String!") } return res } @@ -15944,9 +15420,7 @@ func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel as _ = sel res := graphql.MarshalTime(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "Time!") } return res } @@ -16009,9 +15483,7 @@ func (ec *executionContext) marshalNUser2ᚕᚖadamᚑfrenchᚗcoᚗukᚋbackend func (ec *executionContext) marshalNUser2ᚖadamᚑfrenchᚗcoᚗukᚋbackendᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v *models.User) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "User!") return graphql.Null } return ec._User(ctx, sel, v) @@ -16046,9 +15518,7 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte _ = sel res := graphql.MarshalString(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "__DirectiveLocation!") } return res } @@ -16111,6 +15581,14 @@ func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋg return ret } +func (ec *executionContext) marshalN__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { + if v == nil { + graphql.AddInvalidNullError(ctx, "__Schema!") + return graphql.Null + } + return ec.___Schema(ctx, sel, v) +} + 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) } @@ -16133,9 +15611,7 @@ func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen 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)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullError(ctx, "__Type!") return graphql.Null } return ec.___Type(ctx, sel, v) @@ -16150,9 +15626,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a _ = sel res := graphql.MarshalString(v) if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } + graphql.AddInvalidNullFromMarshaler(ctx, "__TypeKind!") } return res } @@ -16403,13 +15877,6 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg 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 diff --git a/backend/graph/gitea.resolvers.go b/backend/graph/gitea.resolvers.go index 5c9b512..fa29155 100644 --- a/backend/graph/gitea.resolvers.go +++ b/backend/graph/gitea.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/layout.resolvers.go b/backend/graph/layout.resolvers.go index f499517..c2dcf03 100644 --- a/backend/graph/layout.resolvers.go +++ b/backend/graph/layout.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/message.resolvers.go b/backend/graph/message.resolvers.go index 0e2f9de..3c826ed 100644 --- a/backend/graph/message.resolvers.go +++ b/backend/graph/message.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/page.resolvers.go b/backend/graph/page.resolvers.go index 5ba9693..284a3e8 100644 --- a/backend/graph/page.resolvers.go +++ b/backend/graph/page.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/place.resolvers.go b/backend/graph/place.resolvers.go index fefa5b7..ed5a427 100644 --- a/backend/graph/place.resolvers.go +++ b/backend/graph/place.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/post.resolvers.go b/backend/graph/post.resolvers.go index 7ea119c..6b7c022 100644 --- a/backend/graph/post.resolvers.go +++ b/backend/graph/post.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/rowing.resolvers.go b/backend/graph/rowing.resolvers.go index f2249d4..79180f6 100644 --- a/backend/graph/rowing.resolvers.go +++ b/backend/graph/rowing.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/schema.resolvers.go b/backend/graph/schema.resolvers.go index a5761f4..e0a6b8a 100644 --- a/backend/graph/schema.resolvers.go +++ b/backend/graph/schema.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 // Mutation returns MutationResolver implementation. func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} } diff --git a/backend/graph/spotify.resolvers.go b/backend/graph/spotify.resolvers.go index d25d5da..d667e94 100644 --- a/backend/graph/spotify.resolvers.go +++ b/backend/graph/spotify.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/steam.resolvers.go b/backend/graph/steam.resolvers.go index 758af02..06c4406 100644 --- a/backend/graph/steam.resolvers.go +++ b/backend/graph/steam.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/backend/graph/user.resolvers.go b/backend/graph/user.resolvers.go index 9e76e26..590156e 100644 --- a/backend/graph/user.resolvers.go +++ b/backend/graph/user.resolvers.go @@ -3,7 +3,7 @@ package graph // 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. -// Code generated by github.com/99designs/gqlgen version v0.17.95 +// Code generated by github.com/99designs/gqlgen version v0.17.98 import ( "context" diff --git a/renovate.json5 b/renovate.json5 index b27a817..58635fd 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -121,6 +121,15 @@ groupName: "Caddy", }, + // @mdit/plugin-katex renders with its own katex dependency (^0.16), and + // Markdown.vue takes only the stylesheet from the top-level katex, so the + // two must stay on the same minor or the CSS no longer matches the HTML. + // Lift this when the plugin moves its katex range. + { + matchPackageNames: ["katex"], + allowedVersions: "<0.17", + }, + // gqlgen's runtime and gqlparser are versioned together. If a bump breaks // the build, regenerate (`go run github.com/99designs/gqlgen generate`) // on the branch. diff --git a/vue/package-lock.json b/vue/package-lock.json index a563a19..10a8d36 100644 --- a/vue/package-lock.json +++ b/vue/package-lock.json @@ -10,13 +10,13 @@ "dependencies": { "@codemirror/lang-html": "^6.4.11", "@codemirror/view": "^6.43.14", - "@mdit/plugin-katex": "^0.24.1", + "@mdit/plugin-katex": "^0.25.0", "@tailwindcss/vite": "^4.1.18", "@vueuse/core": "^14.2.1", "axios": "^1.13.2", "codemirror": "^6.0.2", "dompurify": "^3.3.3", - "katex": "^0.16.27", + "katex": "^0.16.47", "markdown-it": "^14.1.0", "markdown-it-wikilinks": "^1.4.0", "pinia": "^3.0.4", @@ -1147,15 +1147,15 @@ "license": "MIT" }, "node_modules/@mdit/helper": { - "version": "0.22.1", - "resolved": "https://registry.npmjs.org/@mdit/helper/-/helper-0.22.1.tgz", - "integrity": "sha512-lDpajcdAk84aYCNAM/Mi3djw38DJq7ocLw5VOSMu/u2YKX3/OD37a6Qb59in8Uyp4SiAbQoSHa8px6hgHEpB5g==", + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/@mdit/helper/-/helper-0.23.2.tgz", + "integrity": "sha512-w4oja7kZYnkSiodfn4Neg1gmlIkvQtmCBJTLvLFOaET7xt8KomDNPQeumpGobQ9dWkXFqBKHlxjTYgroPH+CvA==", "license": "MIT", "dependencies": { "@types/markdown-it": "^14.1.2" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "peerDependencies": { "markdown-it": "^14.1.0" @@ -1167,18 +1167,18 @@ } }, "node_modules/@mdit/plugin-katex": { - "version": "0.24.1", - "resolved": "https://registry.npmjs.org/@mdit/plugin-katex/-/plugin-katex-0.24.1.tgz", - "integrity": "sha512-IgJ2sXpIC5+2vgdSmyiBI6MSGCIrnIRxdMnh/JhaOwdYBN0VCMVuH/9iBWHs2FhFvCL768ciY9JSSSnkIesEwA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@mdit/plugin-katex/-/plugin-katex-0.25.2.tgz", + "integrity": "sha512-r7nKvngZP2XXVGsYIXZt4UNxhTAxwSbLSXQtW445nJGhcp0ZrWmdPoz3AFZAX5x51inARab/lnZhD3uq01V5Yg==", "license": "MIT", "dependencies": { - "@mdit/helper": "0.22.1", - "@mdit/plugin-tex": "0.23.0", + "@mdit/helper": "0.23.2", + "@mdit/plugin-tex": "0.24.2", "@types/markdown-it": "^14.1.2", - "katex": "^0.16.25" + "katex": "^0.16.44" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "peerDependencies": { "markdown-it": "^14.1.0" @@ -1190,15 +1190,15 @@ } }, "node_modules/@mdit/plugin-tex": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@mdit/plugin-tex/-/plugin-tex-0.23.0.tgz", - "integrity": "sha512-oiNlqzpa4S/6rGm5Ht5IvpzvVsDmm1kF95oxKR0ZQmkeMeSXJLVrYgxmMvt8Oj0D+/F5WJ4mYCD+kXDaLxI0gg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@mdit/plugin-tex/-/plugin-tex-0.24.2.tgz", + "integrity": "sha512-nVKIJHQJHvgDByKMpCgFT6gdeEZUyzZby24BjCjxP2N10bkgK8IEwZIBu7G5n5WBw2D0kmFD4Top+YA2mjeiQQ==", "license": "MIT", "dependencies": { "@types/markdown-it": "^14.1.2" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "peerDependencies": { "markdown-it": "^14.1.0" @@ -1818,9 +1818,9 @@ "license": "MIT" }, "node_modules/@types/markdown-it": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", - "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", + "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", "license": "MIT", "dependencies": { "@types/linkify-it": "^5", @@ -2919,9 +2919,9 @@ } }, "node_modules/katex": { - "version": "0.16.27", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.27.tgz", - "integrity": "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw==", + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", "funding": [ "https://opencollective.com/katex", "https://github.com/sponsors/katex" diff --git a/vue/package.json b/vue/package.json index 3d753b5..6f04d84 100644 --- a/vue/package.json +++ b/vue/package.json @@ -20,7 +20,7 @@ "axios": "^1.13.2", "codemirror": "^6.0.2", "dompurify": "^3.3.3", - "katex": "^0.19.0", + "katex": "^0.16.47", "markdown-it": "^14.1.0", "markdown-it-wikilinks": "^1.4.0", "pinia": "^3.0.4",