|
|
|
|
@ -13,10 +13,10 @@ import (
|
|
|
|
|
"sync/atomic"
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"github.com/99designs/gqlgen/graphql"
|
|
|
|
|
"github.com/99designs/gqlgen/graphql/introspection"
|
|
|
|
|
"git.farahty.com/nimer/go-mongo/app"
|
|
|
|
|
"git.farahty.com/nimer/go-mongo/models"
|
|
|
|
|
"github.com/99designs/gqlgen/graphql"
|
|
|
|
|
"github.com/99designs/gqlgen/graphql/introspection"
|
|
|
|
|
gqlparser "github.com/vektah/gqlparser/v2"
|
|
|
|
|
"github.com/vektah/gqlparser/v2/ast"
|
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
|
@ -867,7 +867,7 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput(
|
|
|
|
|
|
|
|
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
|
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
|
|
|
return ec.unmarshalNCreateCategoryInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateCategoryInput(ctx, tmp)
|
|
|
|
|
return ec.unmarshalNCreateCategoryInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateCategoryInput(ctx, tmp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var zeroVal models.CreateCategoryInput
|
|
|
|
|
@ -895,7 +895,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput(
|
|
|
|
|
|
|
|
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
|
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
|
|
|
return ec.unmarshalNCreateTodoInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateTodoInput(ctx, tmp)
|
|
|
|
|
return ec.unmarshalNCreateTodoInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateTodoInput(ctx, tmp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var zeroVal models.CreateTodoInput
|
|
|
|
|
@ -923,7 +923,7 @@ func (ec *executionContext) field_Mutation_createUser_argsInput(
|
|
|
|
|
|
|
|
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
|
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
|
|
|
return ec.unmarshalNCreateUserInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateUserInput(ctx, tmp)
|
|
|
|
|
return ec.unmarshalNCreateUserInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateUserInput(ctx, tmp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var zeroVal models.CreateUserInput
|
|
|
|
|
@ -951,7 +951,7 @@ func (ec *executionContext) field_Mutation_login_argsInput(
|
|
|
|
|
|
|
|
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
|
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
|
|
|
return ec.unmarshalNLoginInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐLoginInput(ctx, tmp)
|
|
|
|
|
return ec.unmarshalNLoginInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐLoginInput(ctx, tmp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var zeroVal models.LoginInput
|
|
|
|
|
@ -1234,7 +1234,7 @@ func (ec *executionContext) _Category_title(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.([]*models.Translated)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNTranslated2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1283,7 +1283,7 @@ func (ec *executionContext) _Category_body(ctx context.Context, field graphql.Co
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.([]*models.Translated)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOTranslated2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_body(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1332,7 +1332,7 @@ func (ec *executionContext) _Category_parent(ctx context.Context, field graphql.
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.Category)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1533,7 +1533,7 @@ func (ec *executionContext) _Category_createdBy(ctx context.Context, field graph
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1639,7 +1639,7 @@ func (ec *executionContext) _Category_updatedBy(ctx context.Context, field graph
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1742,7 +1742,7 @@ func (ec *executionContext) _Category_owner(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Category_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1848,7 +1848,7 @@ func (ec *executionContext) _LoginResponse_user(ctx context.Context, field graph
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_LoginResponse_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -1998,7 +1998,7 @@ func (ec *executionContext) _Mutation_login(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.LoginResponse)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNLoginResponse2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNLoginResponse2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_login(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2061,7 +2061,7 @@ func (ec *executionContext) _Mutation_createCategory(ctx context.Context, field
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.Category)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2141,7 +2141,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.Todo)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOTodo2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOTodo2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createTodo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2217,7 +2217,7 @@ func (ec *executionContext) _Mutation_createUser(ctx context.Context, field grap
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2290,7 +2290,7 @@ func (ec *executionContext) _Query_categories(ctx context.Context, field graphql
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.([]*models.Category)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNCategory2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNCategory2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2362,7 +2362,7 @@ func (ec *executionContext) _Query_category(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.Category)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2442,7 +2442,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.([]*models.Todo)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOTodo2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOTodo2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_todos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2507,7 +2507,7 @@ func (ec *executionContext) _Query_todo(ctx context.Context, field graphql.Colle
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.Todo)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOTodo2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOTodo2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_todo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2583,7 +2583,7 @@ func (ec *executionContext) _Query_users(ctx context.Context, field graphql.Coll
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.([]*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOUser2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOUser2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Query_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -2781,7 +2781,7 @@ func (ec *executionContext) _Subscription_onTodo(ctx context.Context, field grap
|
|
|
|
|
w.Write([]byte{'{'})
|
|
|
|
|
graphql.MarshalString(field.Alias).MarshalGQL(w)
|
|
|
|
|
w.Write([]byte{':'})
|
|
|
|
|
ec.marshalOTodo2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res).MarshalGQL(w)
|
|
|
|
|
ec.marshalOTodo2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx, field.Selections, res).MarshalGQL(w)
|
|
|
|
|
w.Write([]byte{'}'})
|
|
|
|
|
})
|
|
|
|
|
case <-ctx.Done():
|
|
|
|
|
@ -3069,7 +3069,7 @@ func (ec *executionContext) _Todo_createdBy(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Todo_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -3175,7 +3175,7 @@ func (ec *executionContext) _Todo_updatedBy(ctx context.Context, field graphql.C
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Todo_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -3278,7 +3278,7 @@ func (ec *executionContext) _Todo_owner(ctx context.Context, field graphql.Colle
|
|
|
|
|
}
|
|
|
|
|
res := resTmp.(*models.User)
|
|
|
|
|
fc.Result = res
|
|
|
|
|
return ec.marshalOUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
return ec.marshalOUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, field.Selections, res)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) fieldContext_Todo_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
|
|
@ -5786,14 +5786,14 @@ func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Contex
|
|
|
|
|
switch k {
|
|
|
|
|
case "title":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
|
|
|
data, err := ec.unmarshalNTranslatedInput2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInputᚄ(ctx, v)
|
|
|
|
|
data, err := ec.unmarshalNTranslatedInput2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInputᚄ(ctx, v)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
|
|
|
|
it.Title = data
|
|
|
|
|
case "body":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("body"))
|
|
|
|
|
data, err := ec.unmarshalOTranslatedInput2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, v)
|
|
|
|
|
data, err := ec.unmarshalOTranslatedInput2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, v)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
|
|
|
|
@ -5879,7 +5879,7 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o
|
|
|
|
|
it.Phone = data
|
|
|
|
|
case "status":
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
|
|
|
data, err := ec.unmarshalOStatus2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐStatus(ctx, v)
|
|
|
|
|
data, err := ec.unmarshalOStatus2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐStatus(ctx, v)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return it, err
|
|
|
|
|
}
|
|
|
|
|
@ -7155,11 +7155,11 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNCategory2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v models.Category) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNCategory2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v models.Category) graphql.Marshaler {
|
|
|
|
|
return ec._Category(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNCategory2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v []*models.Category) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNCategory2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v []*models.Category) graphql.Marshaler {
|
|
|
|
|
ret := make(graphql.Array, len(v))
|
|
|
|
|
var wg sync.WaitGroup
|
|
|
|
|
isLen1 := len(v) == 1
|
|
|
|
|
@ -7183,7 +7183,7 @@ func (ec *executionContext) marshalNCategory2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
if !isLen1 {
|
|
|
|
|
defer wg.Done()
|
|
|
|
|
}
|
|
|
|
|
ret[i] = ec.marshalOCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx, sel, v[i])
|
|
|
|
|
ret[i] = ec.marshalOCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
if isLen1 {
|
|
|
|
|
f(i)
|
|
|
|
|
@ -7197,7 +7197,7 @@ func (ec *executionContext) marshalNCategory2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v *models.Category) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v *models.Category) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
|
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
|
|
|
@ -7207,17 +7207,17 @@ func (ec *executionContext) marshalNCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmo
|
|
|
|
|
return ec._Category(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateCategoryInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateCategoryInput(ctx context.Context, v any) (models.CreateCategoryInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateCategoryInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateCategoryInput(ctx context.Context, v any) (models.CreateCategoryInput, error) {
|
|
|
|
|
res, err := ec.unmarshalInputCreateCategoryInput(ctx, v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateTodoInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateTodoInput(ctx context.Context, v any) (models.CreateTodoInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateTodoInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateTodoInput(ctx context.Context, v any) (models.CreateTodoInput, error) {
|
|
|
|
|
res, err := ec.unmarshalInputCreateTodoInput(ctx, v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateUserInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCreateUserInput(ctx context.Context, v any) (models.CreateUserInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNCreateUserInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCreateUserInput(ctx context.Context, v any) (models.CreateUserInput, error) {
|
|
|
|
|
res, err := ec.unmarshalInputCreateUserInput(ctx, v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
@ -7238,16 +7238,16 @@ func (ec *executionContext) marshalNID2goᚗmongodbᚗorgᚋmongoᚑdriverᚋbso
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNLoginInput2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐLoginInput(ctx context.Context, v any) (models.LoginInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNLoginInput2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐLoginInput(ctx context.Context, v any) (models.LoginInput, error) {
|
|
|
|
|
res, err := ec.unmarshalInputLoginInput(ctx, v)
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNLoginResponse2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx context.Context, sel ast.SelectionSet, v models.LoginResponse) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNLoginResponse2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx context.Context, sel ast.SelectionSet, v models.LoginResponse) graphql.Marshaler {
|
|
|
|
|
return ec._LoginResponse(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNLoginResponse2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx context.Context, sel ast.SelectionSet, v *models.LoginResponse) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNLoginResponse2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐLoginResponse(ctx context.Context, sel ast.SelectionSet, v *models.LoginResponse) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
|
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
|
|
|
@ -7289,7 +7289,7 @@ func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel as
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Translated) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNTranslated2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Translated) graphql.Marshaler {
|
|
|
|
|
ret := make(graphql.Array, len(v))
|
|
|
|
|
var wg sync.WaitGroup
|
|
|
|
|
isLen1 := len(v) == 1
|
|
|
|
|
@ -7313,7 +7313,7 @@ func (ec *executionContext) marshalNTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
if !isLen1 {
|
|
|
|
|
defer wg.Done()
|
|
|
|
|
}
|
|
|
|
|
ret[i] = ec.marshalNTranslated2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslated(ctx, sel, v[i])
|
|
|
|
|
ret[i] = ec.marshalNTranslated2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslated(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
if isLen1 {
|
|
|
|
|
f(i)
|
|
|
|
|
@ -7333,7 +7333,7 @@ func (ec *executionContext) marshalNTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNTranslated2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslated(ctx context.Context, sel ast.SelectionSet, v *models.Translated) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNTranslated2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslated(ctx context.Context, sel ast.SelectionSet, v *models.Translated) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
|
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
|
|
|
@ -7343,14 +7343,14 @@ func (ec *executionContext) marshalNTranslated2ᚖgithubᚗcomᚋfarahtyᚋgoᚑ
|
|
|
|
|
return ec._Translated(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNTranslatedInput2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInputᚄ(ctx context.Context, v any) ([]*models.TranslatedInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNTranslatedInput2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInputᚄ(ctx context.Context, v any) ([]*models.TranslatedInput, error) {
|
|
|
|
|
var vSlice []any
|
|
|
|
|
vSlice = graphql.CoerceList(v)
|
|
|
|
|
var err error
|
|
|
|
|
res := make([]*models.TranslatedInput, len(vSlice))
|
|
|
|
|
for i := range vSlice {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
|
|
res[i], err = ec.unmarshalNTranslatedInput2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, vSlice[i])
|
|
|
|
|
res[i], err = ec.unmarshalNTranslatedInput2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, vSlice[i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
@ -7358,16 +7358,16 @@ func (ec *executionContext) unmarshalNTranslatedInput2ᚕᚖgithubᚗcomᚋfarah
|
|
|
|
|
return res, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalNTranslatedInput2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) (*models.TranslatedInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalNTranslatedInput2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) (*models.TranslatedInput, error) {
|
|
|
|
|
res, err := ec.unmarshalInputTranslatedInput(ctx, v)
|
|
|
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNUser2githubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v models.User) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNUser2gitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v models.User) graphql.Marshaler {
|
|
|
|
|
return ec._User(ctx, sel, &v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v *models.User) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalNUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v *models.User) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
|
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
|
|
|
@ -7660,7 +7660,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOCategory2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v *models.Category) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOCategory2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐCategory(ctx context.Context, sel ast.SelectionSet, v *models.Category) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
@ -7685,7 +7685,7 @@ func (ec *executionContext) marshalOID2ᚖgoᚗmongodbᚗorgᚋmongoᚑdriverᚋ
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐStatus(ctx context.Context, v any) (*models.Status, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalOStatus2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐStatus(ctx context.Context, v any) (*models.Status, error) {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
@ -7694,7 +7694,7 @@ func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmo
|
|
|
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOStatus2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐStatus(ctx context.Context, sel ast.SelectionSet, v *models.Status) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOStatus2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐStatus(ctx context.Context, sel ast.SelectionSet, v *models.Status) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
@ -7719,7 +7719,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOTodo2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx context.Context, sel ast.SelectionSet, v []*models.Todo) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOTodo2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx context.Context, sel ast.SelectionSet, v []*models.Todo) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
@ -7746,7 +7746,7 @@ func (ec *executionContext) marshalOTodo2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmon
|
|
|
|
|
if !isLen1 {
|
|
|
|
|
defer wg.Done()
|
|
|
|
|
}
|
|
|
|
|
ret[i] = ec.marshalOTodo2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx, sel, v[i])
|
|
|
|
|
ret[i] = ec.marshalOTodo2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
if isLen1 {
|
|
|
|
|
f(i)
|
|
|
|
|
@ -7760,14 +7760,14 @@ func (ec *executionContext) marshalOTodo2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmon
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOTodo2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTodo(ctx context.Context, sel ast.SelectionSet, v *models.Todo) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOTodo2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTodo(ctx context.Context, sel ast.SelectionSet, v *models.Todo) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
return ec._Todo(ctx, sel, v)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Translated) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOTranslated2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Translated) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
@ -7794,7 +7794,7 @@ func (ec *executionContext) marshalOTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
if !isLen1 {
|
|
|
|
|
defer wg.Done()
|
|
|
|
|
}
|
|
|
|
|
ret[i] = ec.marshalNTranslated2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslated(ctx, sel, v[i])
|
|
|
|
|
ret[i] = ec.marshalNTranslated2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslated(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
if isLen1 {
|
|
|
|
|
f(i)
|
|
|
|
|
@ -7814,7 +7814,7 @@ func (ec *executionContext) marshalOTranslated2ᚕᚖgithubᚗcomᚋfarahtyᚋgo
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalOTranslatedInput2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) ([]*models.TranslatedInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalOTranslatedInput2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) ([]*models.TranslatedInput, error) {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
@ -7824,7 +7824,7 @@ func (ec *executionContext) unmarshalOTranslatedInput2ᚕᚖgithubᚗcomᚋfarah
|
|
|
|
|
res := make([]*models.TranslatedInput, len(vSlice))
|
|
|
|
|
for i := range vSlice {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
|
|
res[i], err = ec.unmarshalOTranslatedInput2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, vSlice[i])
|
|
|
|
|
res[i], err = ec.unmarshalOTranslatedInput2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx, vSlice[i])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
@ -7832,7 +7832,7 @@ func (ec *executionContext) unmarshalOTranslatedInput2ᚕᚖgithubᚗcomᚋfarah
|
|
|
|
|
return res, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) unmarshalOTranslatedInput2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) (*models.TranslatedInput, error) {
|
|
|
|
|
func (ec *executionContext) unmarshalOTranslatedInput2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐTranslatedInput(ctx context.Context, v any) (*models.TranslatedInput, error) {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
@ -7840,7 +7840,7 @@ func (ec *executionContext) unmarshalOTranslatedInput2ᚖgithubᚗcomᚋfarahty
|
|
|
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOUser2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v []*models.User) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOUser2ᚕᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v []*models.User) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
@ -7867,7 +7867,7 @@ func (ec *executionContext) marshalOUser2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmon
|
|
|
|
|
if !isLen1 {
|
|
|
|
|
defer wg.Done()
|
|
|
|
|
}
|
|
|
|
|
ret[i] = ec.marshalOUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx, sel, v[i])
|
|
|
|
|
ret[i] = ec.marshalOUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx, sel, v[i])
|
|
|
|
|
}
|
|
|
|
|
if isLen1 {
|
|
|
|
|
f(i)
|
|
|
|
|
@ -7881,7 +7881,7 @@ func (ec *executionContext) marshalOUser2ᚕᚖgithubᚗcomᚋfarahtyᚋgoᚑmon
|
|
|
|
|
return ret
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋfarahtyᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v *models.User) graphql.Marshaler {
|
|
|
|
|
func (ec *executionContext) marshalOUser2ᚖgitᚗfarahtyᚗcomᚋnimerᚋgoᚑmongoᚋmodelsᚐUser(ctx context.Context, sel ast.SelectionSet, v *models.User) graphql.Marshaler {
|
|
|
|
|
if v == nil {
|
|
|
|
|
return graphql.Null
|
|
|
|
|
}
|
|
|
|
|
|