|
|
@@ -0,0 +1,11233 @@
|
|
|
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
+
|
|
|
+package graph
|
|
|
+
|
|
|
+import (
|
|
|
+ "bytes"
|
|
|
+ "context"
|
|
|
+ "embed"
|
|
|
+ "errors"
|
|
|
+ "fmt"
|
|
|
+ "strconv"
|
|
|
+ "sync/atomic"
|
|
|
+
|
|
|
+ "github.com/99designs/gqlgen/graphql"
|
|
|
+ "github.com/99designs/gqlgen/graphql/introspection"
|
|
|
+ gqlparser "github.com/vektah/gqlparser/v2"
|
|
|
+ "github.com/vektah/gqlparser/v2/ast"
|
|
|
+ "gogs.dmsc.dev/arp/graph/model"
|
|
|
+)
|
|
|
+
|
|
|
+// region ************************** generated!.gotpl **************************
|
|
|
+
|
|
|
+// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
|
|
|
+func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
|
|
|
+ return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity}
|
|
|
+}
|
|
|
+
|
|
|
+type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
+
|
|
|
+type ResolverRoot interface {
|
|
|
+ Mutation() MutationResolver
|
|
|
+ Query() QueryResolver
|
|
|
+ Subscription() SubscriptionResolver
|
|
|
+}
|
|
|
+
|
|
|
+type DirectiveRoot struct {
|
|
|
+}
|
|
|
+
|
|
|
+type ComplexityRoot struct {
|
|
|
+ AuthPayload struct {
|
|
|
+ Token func(childComplexity int) int
|
|
|
+ User func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Channel struct {
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Participants func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Message struct {
|
|
|
+ Content func(childComplexity int) int
|
|
|
+ ConversationID func(childComplexity int) int
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Sender func(childComplexity int) int
|
|
|
+ SenderID func(childComplexity int) int
|
|
|
+ SentAt func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Mutation struct {
|
|
|
+ CreateChannel func(childComplexity int, input model.NewChannel) int
|
|
|
+ CreateMessage func(childComplexity int, input model.NewMessage) int
|
|
|
+ CreateNote func(childComplexity int, input model.NewNote) int
|
|
|
+ CreatePermission func(childComplexity int, input model.NewPermission) int
|
|
|
+ CreateRole func(childComplexity int, input model.NewRole) int
|
|
|
+ CreateService func(childComplexity int, input model.NewService) int
|
|
|
+ CreateTask func(childComplexity int, input model.NewTask) int
|
|
|
+ CreateTaskStatus func(childComplexity int, input model.NewTaskStatus) int
|
|
|
+ CreateUser func(childComplexity int, input model.NewUser) int
|
|
|
+ DeleteChannel func(childComplexity int, id string) int
|
|
|
+ DeleteMessage func(childComplexity int, id string) int
|
|
|
+ DeleteNote func(childComplexity int, id string) int
|
|
|
+ DeletePermission func(childComplexity int, id string) int
|
|
|
+ DeleteRole func(childComplexity int, id string) int
|
|
|
+ DeleteService func(childComplexity int, id string) int
|
|
|
+ DeleteTask func(childComplexity int, id string) int
|
|
|
+ DeleteTaskStatus func(childComplexity int, id string) int
|
|
|
+ DeleteUser func(childComplexity int, id string) int
|
|
|
+ Login func(childComplexity int, email string, password string) int
|
|
|
+ UpdateChannel func(childComplexity int, id string, input model.UpdateChannelInput) int
|
|
|
+ UpdateMessage func(childComplexity int, id string, input model.UpdateMessageInput) int
|
|
|
+ UpdateNote func(childComplexity int, id string, input model.UpdateNoteInput) int
|
|
|
+ UpdatePermission func(childComplexity int, id string, input model.UpdatePermissionInput) int
|
|
|
+ UpdateRole func(childComplexity int, id string, input model.UpdateRoleInput) int
|
|
|
+ UpdateService func(childComplexity int, id string, input model.UpdateServiceInput) int
|
|
|
+ UpdateTask func(childComplexity int, id string, input model.UpdateTaskInput) int
|
|
|
+ UpdateTaskStatus func(childComplexity int, id string, input model.UpdateTaskStatusInput) int
|
|
|
+ UpdateUser func(childComplexity int, id string, input model.UpdateUserInput) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Note struct {
|
|
|
+ Content func(childComplexity int) int
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Service func(childComplexity int) int
|
|
|
+ ServiceID func(childComplexity int) int
|
|
|
+ Title func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ User func(childComplexity int) int
|
|
|
+ UserID func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Permission struct {
|
|
|
+ Code func(childComplexity int) int
|
|
|
+ Description func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Query struct {
|
|
|
+ Channel func(childComplexity int, id string) int
|
|
|
+ Channels func(childComplexity int) int
|
|
|
+ Message func(childComplexity int, id string) int
|
|
|
+ Messages func(childComplexity int) int
|
|
|
+ Note func(childComplexity int, id string) int
|
|
|
+ Notes func(childComplexity int) int
|
|
|
+ Permission func(childComplexity int, id string) int
|
|
|
+ Permissions func(childComplexity int) int
|
|
|
+ Role func(childComplexity int, id string) int
|
|
|
+ Roles func(childComplexity int) int
|
|
|
+ Service func(childComplexity int, id string) int
|
|
|
+ Services func(childComplexity int) int
|
|
|
+ Task func(childComplexity int, id string) int
|
|
|
+ TaskStatus func(childComplexity int, id string) int
|
|
|
+ TaskStatuses func(childComplexity int) int
|
|
|
+ Tasks func(childComplexity int) int
|
|
|
+ User func(childComplexity int, id string) int
|
|
|
+ Users func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Role struct {
|
|
|
+ Description func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Name func(childComplexity int) int
|
|
|
+ Permissions func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Service struct {
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ CreatedBy func(childComplexity int) int
|
|
|
+ CreatedByID func(childComplexity int) int
|
|
|
+ Description func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Name func(childComplexity int) int
|
|
|
+ Participants func(childComplexity int) int
|
|
|
+ Tasks func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Subscription struct {
|
|
|
+ MessageAdded func(childComplexity int) int
|
|
|
+ TaskCreated func(childComplexity int) int
|
|
|
+ TaskDeleted func(childComplexity int) int
|
|
|
+ TaskUpdated func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ Task struct {
|
|
|
+ Assignee func(childComplexity int) int
|
|
|
+ AssigneeID func(childComplexity int) int
|
|
|
+ Content func(childComplexity int) int
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ CreatedBy func(childComplexity int) int
|
|
|
+ CreatedByID func(childComplexity int) int
|
|
|
+ DueDate func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Priority func(childComplexity int) int
|
|
|
+ Status func(childComplexity int) int
|
|
|
+ StatusID func(childComplexity int) int
|
|
|
+ Title func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ TaskStatus struct {
|
|
|
+ Code func(childComplexity int) int
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Label func(childComplexity int) int
|
|
|
+ Tasks func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+
|
|
|
+ User struct {
|
|
|
+ CreatedAt func(childComplexity int) int
|
|
|
+ Email func(childComplexity int) int
|
|
|
+ ID func(childComplexity int) int
|
|
|
+ Password func(childComplexity int) int
|
|
|
+ Roles func(childComplexity int) int
|
|
|
+ UpdatedAt func(childComplexity int) int
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+type MutationResolver interface {
|
|
|
+ Login(ctx context.Context, email string, password string) (*model.AuthPayload, error)
|
|
|
+ CreateUser(ctx context.Context, input model.NewUser) (*model.User, error)
|
|
|
+ UpdateUser(ctx context.Context, id string, input model.UpdateUserInput) (*model.User, error)
|
|
|
+ DeleteUser(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateNote(ctx context.Context, input model.NewNote) (*model.Note, error)
|
|
|
+ UpdateNote(ctx context.Context, id string, input model.UpdateNoteInput) (*model.Note, error)
|
|
|
+ DeleteNote(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateRole(ctx context.Context, input model.NewRole) (*model.Role, error)
|
|
|
+ UpdateRole(ctx context.Context, id string, input model.UpdateRoleInput) (*model.Role, error)
|
|
|
+ DeleteRole(ctx context.Context, id string) (bool, error)
|
|
|
+ CreatePermission(ctx context.Context, input model.NewPermission) (*model.Permission, error)
|
|
|
+ UpdatePermission(ctx context.Context, id string, input model.UpdatePermissionInput) (*model.Permission, error)
|
|
|
+ DeletePermission(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateService(ctx context.Context, input model.NewService) (*model.Service, error)
|
|
|
+ UpdateService(ctx context.Context, id string, input model.UpdateServiceInput) (*model.Service, error)
|
|
|
+ DeleteService(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateTask(ctx context.Context, input model.NewTask) (*model.Task, error)
|
|
|
+ UpdateTask(ctx context.Context, id string, input model.UpdateTaskInput) (*model.Task, error)
|
|
|
+ DeleteTask(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateTaskStatus(ctx context.Context, input model.NewTaskStatus) (*model.TaskStatus, error)
|
|
|
+ UpdateTaskStatus(ctx context.Context, id string, input model.UpdateTaskStatusInput) (*model.TaskStatus, error)
|
|
|
+ DeleteTaskStatus(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateChannel(ctx context.Context, input model.NewChannel) (*model.Channel, error)
|
|
|
+ UpdateChannel(ctx context.Context, id string, input model.UpdateChannelInput) (*model.Channel, error)
|
|
|
+ DeleteChannel(ctx context.Context, id string) (bool, error)
|
|
|
+ CreateMessage(ctx context.Context, input model.NewMessage) (*model.Message, error)
|
|
|
+ UpdateMessage(ctx context.Context, id string, input model.UpdateMessageInput) (*model.Message, error)
|
|
|
+ DeleteMessage(ctx context.Context, id string) (bool, error)
|
|
|
+}
|
|
|
+type QueryResolver interface {
|
|
|
+ Users(ctx context.Context) ([]*model.User, error)
|
|
|
+ User(ctx context.Context, id string) (*model.User, error)
|
|
|
+ Notes(ctx context.Context) ([]*model.Note, error)
|
|
|
+ Note(ctx context.Context, id string) (*model.Note, error)
|
|
|
+ Roles(ctx context.Context) ([]*model.Role, error)
|
|
|
+ Role(ctx context.Context, id string) (*model.Role, error)
|
|
|
+ Permissions(ctx context.Context) ([]*model.Permission, error)
|
|
|
+ Permission(ctx context.Context, id string) (*model.Permission, error)
|
|
|
+ Services(ctx context.Context) ([]*model.Service, error)
|
|
|
+ Service(ctx context.Context, id string) (*model.Service, error)
|
|
|
+ Tasks(ctx context.Context) ([]*model.Task, error)
|
|
|
+ Task(ctx context.Context, id string) (*model.Task, error)
|
|
|
+ TaskStatuses(ctx context.Context) ([]*model.TaskStatus, error)
|
|
|
+ TaskStatus(ctx context.Context, id string) (*model.TaskStatus, error)
|
|
|
+ Channels(ctx context.Context) ([]*model.Channel, error)
|
|
|
+ Channel(ctx context.Context, id string) (*model.Channel, error)
|
|
|
+ Messages(ctx context.Context) ([]*model.Message, error)
|
|
|
+ Message(ctx context.Context, id string) (*model.Message, error)
|
|
|
+}
|
|
|
+type SubscriptionResolver interface {
|
|
|
+ TaskCreated(ctx context.Context) (<-chan *model.Task, error)
|
|
|
+ TaskUpdated(ctx context.Context) (<-chan *model.Task, error)
|
|
|
+ TaskDeleted(ctx context.Context) (<-chan *model.Task, error)
|
|
|
+ MessageAdded(ctx context.Context) (<-chan *model.Message, error)
|
|
|
+}
|
|
|
+
|
|
|
+type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
+
|
|
|
+func (e *executableSchema) Schema() *ast.Schema {
|
|
|
+ if e.SchemaData != nil {
|
|
|
+ return e.SchemaData
|
|
|
+ }
|
|
|
+ return parsedSchema
|
|
|
+}
|
|
|
+
|
|
|
+func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
|
|
|
+ ec := newExecutionContext(nil, e, nil)
|
|
|
+ _ = ec
|
|
|
+ switch typeName + "." + field {
|
|
|
+
|
|
|
+ case "AuthPayload.token":
|
|
|
+ if e.ComplexityRoot.AuthPayload.Token == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.AuthPayload.Token(childComplexity), true
|
|
|
+ case "AuthPayload.user":
|
|
|
+ if e.ComplexityRoot.AuthPayload.User == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.AuthPayload.User(childComplexity), true
|
|
|
+
|
|
|
+ case "Channel.createdAt":
|
|
|
+ if e.ComplexityRoot.Channel.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Channel.CreatedAt(childComplexity), true
|
|
|
+ case "Channel.id":
|
|
|
+ if e.ComplexityRoot.Channel.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Channel.ID(childComplexity), true
|
|
|
+ case "Channel.participants":
|
|
|
+ if e.ComplexityRoot.Channel.Participants == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Channel.Participants(childComplexity), true
|
|
|
+ case "Channel.updatedAt":
|
|
|
+ if e.ComplexityRoot.Channel.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Channel.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ case "Message.content":
|
|
|
+ if e.ComplexityRoot.Message.Content == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.Content(childComplexity), true
|
|
|
+ case "Message.conversationId":
|
|
|
+ if e.ComplexityRoot.Message.ConversationID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.ConversationID(childComplexity), true
|
|
|
+ case "Message.createdAt":
|
|
|
+ if e.ComplexityRoot.Message.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.CreatedAt(childComplexity), true
|
|
|
+ case "Message.id":
|
|
|
+ if e.ComplexityRoot.Message.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.ID(childComplexity), true
|
|
|
+ case "Message.sender":
|
|
|
+ if e.ComplexityRoot.Message.Sender == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.Sender(childComplexity), true
|
|
|
+ case "Message.senderId":
|
|
|
+ if e.ComplexityRoot.Message.SenderID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.SenderID(childComplexity), true
|
|
|
+ case "Message.sentAt":
|
|
|
+ if e.ComplexityRoot.Message.SentAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.SentAt(childComplexity), true
|
|
|
+ case "Message.updatedAt":
|
|
|
+ if e.ComplexityRoot.Message.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Message.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ case "Mutation.createChannel":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateChannel == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createChannel_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateChannel(childComplexity, args["input"].(model.NewChannel)), true
|
|
|
+ case "Mutation.createMessage":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateMessage == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createMessage_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateMessage(childComplexity, args["input"].(model.NewMessage)), true
|
|
|
+ case "Mutation.createNote":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateNote == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createNote_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateNote(childComplexity, args["input"].(model.NewNote)), true
|
|
|
+ case "Mutation.createPermission":
|
|
|
+ if e.ComplexityRoot.Mutation.CreatePermission == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createPermission_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreatePermission(childComplexity, args["input"].(model.NewPermission)), true
|
|
|
+ case "Mutation.createRole":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateRole == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createRole_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateRole(childComplexity, args["input"].(model.NewRole)), true
|
|
|
+ case "Mutation.createService":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateService == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createService_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateService(childComplexity, args["input"].(model.NewService)), true
|
|
|
+ case "Mutation.createTask":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateTask == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createTask_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateTask(childComplexity, args["input"].(model.NewTask)), true
|
|
|
+ case "Mutation.createTaskStatus":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateTaskStatus == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createTaskStatus_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateTaskStatus(childComplexity, args["input"].(model.NewTaskStatus)), true
|
|
|
+ case "Mutation.createUser":
|
|
|
+ if e.ComplexityRoot.Mutation.CreateUser == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_createUser_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.CreateUser(childComplexity, args["input"].(model.NewUser)), true
|
|
|
+ case "Mutation.deleteChannel":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteChannel == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteChannel_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteChannel(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteMessage":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteMessage == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteMessage_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteMessage(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteNote":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteNote == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteNote_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteNote(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deletePermission":
|
|
|
+ if e.ComplexityRoot.Mutation.DeletePermission == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deletePermission_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeletePermission(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteRole":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteRole == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteRole_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteRole(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteService":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteService == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteService_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteService(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteTask":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteTask == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteTask_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteTask(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteTaskStatus":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteTaskStatus == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteTaskStatus_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteTaskStatus(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.deleteUser":
|
|
|
+ if e.ComplexityRoot.Mutation.DeleteUser == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_deleteUser_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.DeleteUser(childComplexity, args["id"].(string)), true
|
|
|
+ case "Mutation.login":
|
|
|
+ if e.ComplexityRoot.Mutation.Login == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_login_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.Login(childComplexity, args["email"].(string), args["password"].(string)), true
|
|
|
+ case "Mutation.updateChannel":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateChannel == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateChannel_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateChannel(childComplexity, args["id"].(string), args["input"].(model.UpdateChannelInput)), true
|
|
|
+ case "Mutation.updateMessage":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateMessage == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateMessage_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateMessage(childComplexity, args["id"].(string), args["input"].(model.UpdateMessageInput)), true
|
|
|
+ case "Mutation.updateNote":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateNote == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateNote_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateNote(childComplexity, args["id"].(string), args["input"].(model.UpdateNoteInput)), true
|
|
|
+ case "Mutation.updatePermission":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdatePermission == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updatePermission_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdatePermission(childComplexity, args["id"].(string), args["input"].(model.UpdatePermissionInput)), true
|
|
|
+ case "Mutation.updateRole":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateRole == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateRole_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateRole(childComplexity, args["id"].(string), args["input"].(model.UpdateRoleInput)), true
|
|
|
+ case "Mutation.updateService":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateService == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateService_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateService(childComplexity, args["id"].(string), args["input"].(model.UpdateServiceInput)), true
|
|
|
+ case "Mutation.updateTask":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateTask == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateTask_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateTask(childComplexity, args["id"].(string), args["input"].(model.UpdateTaskInput)), true
|
|
|
+ case "Mutation.updateTaskStatus":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateTaskStatus == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateTaskStatus_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateTaskStatus(childComplexity, args["id"].(string), args["input"].(model.UpdateTaskStatusInput)), true
|
|
|
+ case "Mutation.updateUser":
|
|
|
+ if e.ComplexityRoot.Mutation.UpdateUser == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Mutation_updateUser_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Mutation.UpdateUser(childComplexity, args["id"].(string), args["input"].(model.UpdateUserInput)), true
|
|
|
+
|
|
|
+ case "Note.content":
|
|
|
+ if e.ComplexityRoot.Note.Content == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.Content(childComplexity), true
|
|
|
+ case "Note.createdAt":
|
|
|
+ if e.ComplexityRoot.Note.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.CreatedAt(childComplexity), true
|
|
|
+ case "Note.id":
|
|
|
+ if e.ComplexityRoot.Note.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.ID(childComplexity), true
|
|
|
+ case "Note.service":
|
|
|
+ if e.ComplexityRoot.Note.Service == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.Service(childComplexity), true
|
|
|
+ case "Note.serviceId":
|
|
|
+ if e.ComplexityRoot.Note.ServiceID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.ServiceID(childComplexity), true
|
|
|
+ case "Note.title":
|
|
|
+ if e.ComplexityRoot.Note.Title == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.Title(childComplexity), true
|
|
|
+ case "Note.updatedAt":
|
|
|
+ if e.ComplexityRoot.Note.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.UpdatedAt(childComplexity), true
|
|
|
+ case "Note.user":
|
|
|
+ if e.ComplexityRoot.Note.User == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.User(childComplexity), true
|
|
|
+ case "Note.userId":
|
|
|
+ if e.ComplexityRoot.Note.UserID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Note.UserID(childComplexity), true
|
|
|
+
|
|
|
+ case "Permission.code":
|
|
|
+ if e.ComplexityRoot.Permission.Code == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Permission.Code(childComplexity), true
|
|
|
+ case "Permission.description":
|
|
|
+ if e.ComplexityRoot.Permission.Description == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Permission.Description(childComplexity), true
|
|
|
+ case "Permission.id":
|
|
|
+ if e.ComplexityRoot.Permission.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Permission.ID(childComplexity), true
|
|
|
+
|
|
|
+ case "Query.channel":
|
|
|
+ if e.ComplexityRoot.Query.Channel == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_channel_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Channel(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.channels":
|
|
|
+ if e.ComplexityRoot.Query.Channels == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Channels(childComplexity), true
|
|
|
+
|
|
|
+ case "Query.message":
|
|
|
+ if e.ComplexityRoot.Query.Message == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_message_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Message(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.messages":
|
|
|
+ if e.ComplexityRoot.Query.Messages == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Messages(childComplexity), true
|
|
|
+ case "Query.note":
|
|
|
+ if e.ComplexityRoot.Query.Note == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_note_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Note(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.notes":
|
|
|
+ if e.ComplexityRoot.Query.Notes == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Notes(childComplexity), true
|
|
|
+ case "Query.permission":
|
|
|
+ if e.ComplexityRoot.Query.Permission == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_permission_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Permission(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.permissions":
|
|
|
+ if e.ComplexityRoot.Query.Permissions == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Permissions(childComplexity), true
|
|
|
+ case "Query.role":
|
|
|
+ if e.ComplexityRoot.Query.Role == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_role_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Role(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.roles":
|
|
|
+ if e.ComplexityRoot.Query.Roles == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Roles(childComplexity), true
|
|
|
+ case "Query.service":
|
|
|
+ if e.ComplexityRoot.Query.Service == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_service_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Service(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.services":
|
|
|
+ if e.ComplexityRoot.Query.Services == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Services(childComplexity), true
|
|
|
+ case "Query.task":
|
|
|
+ if e.ComplexityRoot.Query.Task == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_task_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Task(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.taskStatus":
|
|
|
+ if e.ComplexityRoot.Query.TaskStatus == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_taskStatus_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.TaskStatus(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.taskStatuses":
|
|
|
+ if e.ComplexityRoot.Query.TaskStatuses == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.TaskStatuses(childComplexity), true
|
|
|
+ case "Query.tasks":
|
|
|
+ if e.ComplexityRoot.Query.Tasks == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Tasks(childComplexity), true
|
|
|
+ case "Query.user":
|
|
|
+ if e.ComplexityRoot.Query.User == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ args, err := ec.field_Query_user_args(ctx, rawArgs)
|
|
|
+ if err != nil {
|
|
|
+ return 0, false
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.User(childComplexity, args["id"].(string)), true
|
|
|
+ case "Query.users":
|
|
|
+ if e.ComplexityRoot.Query.Users == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Query.Users(childComplexity), true
|
|
|
+
|
|
|
+ case "Role.description":
|
|
|
+ if e.ComplexityRoot.Role.Description == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Role.Description(childComplexity), true
|
|
|
+ case "Role.id":
|
|
|
+ if e.ComplexityRoot.Role.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Role.ID(childComplexity), true
|
|
|
+ case "Role.name":
|
|
|
+ if e.ComplexityRoot.Role.Name == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Role.Name(childComplexity), true
|
|
|
+ case "Role.permissions":
|
|
|
+ if e.ComplexityRoot.Role.Permissions == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Role.Permissions(childComplexity), true
|
|
|
+
|
|
|
+ case "Service.createdAt":
|
|
|
+ if e.ComplexityRoot.Service.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.CreatedAt(childComplexity), true
|
|
|
+ case "Service.createdBy":
|
|
|
+ if e.ComplexityRoot.Service.CreatedBy == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.CreatedBy(childComplexity), true
|
|
|
+ case "Service.createdById":
|
|
|
+ if e.ComplexityRoot.Service.CreatedByID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.CreatedByID(childComplexity), true
|
|
|
+ case "Service.description":
|
|
|
+ if e.ComplexityRoot.Service.Description == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.Description(childComplexity), true
|
|
|
+ case "Service.id":
|
|
|
+ if e.ComplexityRoot.Service.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.ID(childComplexity), true
|
|
|
+ case "Service.name":
|
|
|
+ if e.ComplexityRoot.Service.Name == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.Name(childComplexity), true
|
|
|
+ case "Service.participants":
|
|
|
+ if e.ComplexityRoot.Service.Participants == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.Participants(childComplexity), true
|
|
|
+ case "Service.tasks":
|
|
|
+ if e.ComplexityRoot.Service.Tasks == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.Tasks(childComplexity), true
|
|
|
+ case "Service.updatedAt":
|
|
|
+ if e.ComplexityRoot.Service.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Service.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ case "Subscription.messageAdded":
|
|
|
+ if e.ComplexityRoot.Subscription.MessageAdded == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Subscription.MessageAdded(childComplexity), true
|
|
|
+ case "Subscription.taskCreated":
|
|
|
+ if e.ComplexityRoot.Subscription.TaskCreated == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Subscription.TaskCreated(childComplexity), true
|
|
|
+ case "Subscription.taskDeleted":
|
|
|
+ if e.ComplexityRoot.Subscription.TaskDeleted == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Subscription.TaskDeleted(childComplexity), true
|
|
|
+ case "Subscription.taskUpdated":
|
|
|
+ if e.ComplexityRoot.Subscription.TaskUpdated == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Subscription.TaskUpdated(childComplexity), true
|
|
|
+
|
|
|
+ case "Task.assignee":
|
|
|
+ if e.ComplexityRoot.Task.Assignee == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.Assignee(childComplexity), true
|
|
|
+ case "Task.assigneeId":
|
|
|
+ if e.ComplexityRoot.Task.AssigneeID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.AssigneeID(childComplexity), true
|
|
|
+ case "Task.content":
|
|
|
+ if e.ComplexityRoot.Task.Content == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.Content(childComplexity), true
|
|
|
+ case "Task.createdAt":
|
|
|
+ if e.ComplexityRoot.Task.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.CreatedAt(childComplexity), true
|
|
|
+ case "Task.createdBy":
|
|
|
+ if e.ComplexityRoot.Task.CreatedBy == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.CreatedBy(childComplexity), true
|
|
|
+ case "Task.createdById":
|
|
|
+ if e.ComplexityRoot.Task.CreatedByID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.CreatedByID(childComplexity), true
|
|
|
+ case "Task.dueDate":
|
|
|
+ if e.ComplexityRoot.Task.DueDate == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.DueDate(childComplexity), true
|
|
|
+ case "Task.id":
|
|
|
+ if e.ComplexityRoot.Task.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.ID(childComplexity), true
|
|
|
+ case "Task.priority":
|
|
|
+ if e.ComplexityRoot.Task.Priority == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.Priority(childComplexity), true
|
|
|
+ case "Task.status":
|
|
|
+ if e.ComplexityRoot.Task.Status == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.Status(childComplexity), true
|
|
|
+ case "Task.statusId":
|
|
|
+ if e.ComplexityRoot.Task.StatusID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.StatusID(childComplexity), true
|
|
|
+ case "Task.title":
|
|
|
+ if e.ComplexityRoot.Task.Title == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.Title(childComplexity), true
|
|
|
+ case "Task.updatedAt":
|
|
|
+ if e.ComplexityRoot.Task.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.Task.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ case "TaskStatus.code":
|
|
|
+ if e.ComplexityRoot.TaskStatus.Code == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.Code(childComplexity), true
|
|
|
+ case "TaskStatus.createdAt":
|
|
|
+ if e.ComplexityRoot.TaskStatus.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.CreatedAt(childComplexity), true
|
|
|
+ case "TaskStatus.id":
|
|
|
+ if e.ComplexityRoot.TaskStatus.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.ID(childComplexity), true
|
|
|
+ case "TaskStatus.label":
|
|
|
+ if e.ComplexityRoot.TaskStatus.Label == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.Label(childComplexity), true
|
|
|
+ case "TaskStatus.tasks":
|
|
|
+ if e.ComplexityRoot.TaskStatus.Tasks == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.Tasks(childComplexity), true
|
|
|
+ case "TaskStatus.updatedAt":
|
|
|
+ if e.ComplexityRoot.TaskStatus.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.TaskStatus.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ case "User.createdAt":
|
|
|
+ if e.ComplexityRoot.User.CreatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.CreatedAt(childComplexity), true
|
|
|
+ case "User.email":
|
|
|
+ if e.ComplexityRoot.User.Email == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.Email(childComplexity), true
|
|
|
+ case "User.id":
|
|
|
+ if e.ComplexityRoot.User.ID == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.ID(childComplexity), true
|
|
|
+ case "User.password":
|
|
|
+ if e.ComplexityRoot.User.Password == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.Password(childComplexity), true
|
|
|
+ case "User.roles":
|
|
|
+ if e.ComplexityRoot.User.Roles == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.Roles(childComplexity), true
|
|
|
+ case "User.updatedAt":
|
|
|
+ if e.ComplexityRoot.User.UpdatedAt == nil {
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+ return e.ComplexityRoot.User.UpdatedAt(childComplexity), true
|
|
|
+
|
|
|
+ }
|
|
|
+ return 0, false
|
|
|
+}
|
|
|
+
|
|
|
+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.unmarshalInputNewChannel,
|
|
|
+ ec.unmarshalInputNewMessage,
|
|
|
+ ec.unmarshalInputNewNote,
|
|
|
+ ec.unmarshalInputNewPermission,
|
|
|
+ ec.unmarshalInputNewRole,
|
|
|
+ ec.unmarshalInputNewService,
|
|
|
+ ec.unmarshalInputNewTask,
|
|
|
+ ec.unmarshalInputNewTaskStatus,
|
|
|
+ ec.unmarshalInputNewUser,
|
|
|
+ ec.unmarshalInputUpdateChannelInput,
|
|
|
+ ec.unmarshalInputUpdateMessageInput,
|
|
|
+ ec.unmarshalInputUpdateNoteInput,
|
|
|
+ ec.unmarshalInputUpdatePermissionInput,
|
|
|
+ ec.unmarshalInputUpdateRoleInput,
|
|
|
+ ec.unmarshalInputUpdateServiceInput,
|
|
|
+ ec.unmarshalInputUpdateTaskInput,
|
|
|
+ ec.unmarshalInputUpdateTaskStatusInput,
|
|
|
+ ec.unmarshalInputUpdateUserInput,
|
|
|
+ )
|
|
|
+ first := true
|
|
|
+
|
|
|
+ switch opCtx.Operation.Operation {
|
|
|
+ case ast.Query:
|
|
|
+ return func(ctx context.Context) *graphql.Response {
|
|
|
+ var response graphql.Response
|
|
|
+ var data graphql.Marshaler
|
|
|
+ if first {
|
|
|
+ first = false
|
|
|
+ ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
|
|
+ data = ec._Query(ctx, opCtx.Operation.SelectionSet)
|
|
|
+ } else {
|
|
|
+ if atomic.LoadInt32(&ec.PendingDeferred) > 0 {
|
|
|
+ result := <-ec.DeferredResults
|
|
|
+ atomic.AddInt32(&ec.PendingDeferred, -1)
|
|
|
+ data = result.Result
|
|
|
+ response.Path = result.Path
|
|
|
+ response.Label = result.Label
|
|
|
+ response.Errors = result.Errors
|
|
|
+ } else {
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var buf bytes.Buffer
|
|
|
+ data.MarshalGQL(&buf)
|
|
|
+ response.Data = buf.Bytes()
|
|
|
+ if atomic.LoadInt32(&ec.Deferred) > 0 {
|
|
|
+ hasNext := atomic.LoadInt32(&ec.PendingDeferred) > 0
|
|
|
+ response.HasNext = &hasNext
|
|
|
+ }
|
|
|
+
|
|
|
+ return &response
|
|
|
+ }
|
|
|
+ case ast.Mutation:
|
|
|
+ return func(ctx context.Context) *graphql.Response {
|
|
|
+ if !first {
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ first = false
|
|
|
+ ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
|
|
+ data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
|
|
|
+ var buf bytes.Buffer
|
|
|
+ data.MarshalGQL(&buf)
|
|
|
+
|
|
|
+ return &graphql.Response{
|
|
|
+ Data: buf.Bytes(),
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case ast.Subscription:
|
|
|
+ next := ec._Subscription(ctx, opCtx.Operation.SelectionSet)
|
|
|
+
|
|
|
+ var buf bytes.Buffer
|
|
|
+ return func(ctx context.Context) *graphql.Response {
|
|
|
+ buf.Reset()
|
|
|
+ data := next(ctx)
|
|
|
+
|
|
|
+ if data == nil {
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ data.MarshalGQL(&buf)
|
|
|
+
|
|
|
+ return &graphql.Response{
|
|
|
+ Data: buf.Bytes(),
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ default:
|
|
|
+ return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+type executionContext struct {
|
|
|
+ *graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
+}
|
|
|
+
|
|
|
+func newExecutionContext(
|
|
|
+ opCtx *graphql.OperationContext,
|
|
|
+ execSchema *executableSchema,
|
|
|
+ deferredResults chan graphql.DeferredResult,
|
|
|
+) executionContext {
|
|
|
+ return executionContext{
|
|
|
+ ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot](
|
|
|
+ opCtx,
|
|
|
+ (*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema),
|
|
|
+ parsedSchema,
|
|
|
+ deferredResults,
|
|
|
+ ),
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+//go:embed "schema.graphqls"
|
|
|
+var sourcesFS embed.FS
|
|
|
+
|
|
|
+func sourceData(filename string) string {
|
|
|
+ data, err := sourcesFS.ReadFile(filename)
|
|
|
+ if err != nil {
|
|
|
+ panic(fmt.Sprintf("codegen problem: %s not available", filename))
|
|
|
+ }
|
|
|
+ return string(data)
|
|
|
+}
|
|
|
+
|
|
|
+var sources = []*ast.Source{
|
|
|
+ {Name: "schema.graphqls", Input: sourceData("schema.graphqls"), BuiltIn: false},
|
|
|
+}
|
|
|
+var parsedSchema = gqlparser.MustLoadSchema(sources...)
|
|
|
+
|
|
|
+// endregion ************************** generated!.gotpl **************************
|
|
|
+
|
|
|
+// region ***************************** args.gotpl *****************************
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createChannel_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, "input", ec.unmarshalNNewChannel2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewChannel)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createMessage_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, "input", ec.unmarshalNNewMessage2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewMessage)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createNote_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, "input", ec.unmarshalNNewNote2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewNote)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createPermission_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, "input", ec.unmarshalNNewPermission2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewPermission)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createRole_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, "input", ec.unmarshalNNewRole2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewRole)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createService_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, "input", ec.unmarshalNNewService2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewService)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createTaskStatus_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, "input", ec.unmarshalNNewTaskStatus2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewTaskStatus)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createTask_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, "input", ec.unmarshalNNewTask2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewTask)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_createUser_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, "input", ec.unmarshalNNewUser2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewUser)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteChannel_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteMessage_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteNote_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deletePermission_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteRole_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteService_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteTaskStatus_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteTask_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_deleteUser_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_login_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, "email", ec.unmarshalNString2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["email"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "password", ec.unmarshalNString2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["password"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateChannel_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateChannelInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateChannelInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateMessage_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMessageInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateMessageInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateNote_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateNoteInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateNoteInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updatePermission_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdatePermissionInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdatePermissionInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateRole_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateRoleInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateRoleInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateService_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateServiceInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateServiceInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateTaskStatus_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTaskStatusInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateTaskStatusInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateTask_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTaskInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateTaskInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Mutation_updateUser_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateUserInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateUserInput)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["input"] = arg1
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query___type_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, "name", ec.unmarshalNString2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["name"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_channel_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_message_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_note_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_permission_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_role_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_service_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_taskStatus_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_task_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field_Query_user_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, "id", ec.unmarshalNID2string)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["id"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
+ var err error
|
|
|
+ args := map[string]any{}
|
|
|
+ arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["includeDeprecated"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
|
+ var err error
|
|
|
+ args := map[string]any{}
|
|
|
+ arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["includeDeprecated"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field___Type_enumValues_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", ec.unmarshalOBoolean2bool)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["includeDeprecated"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) field___Type_fields_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", ec.unmarshalOBoolean2bool)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ args["includeDeprecated"] = arg0
|
|
|
+ return args, nil
|
|
|
+}
|
|
|
+
|
|
|
+// endregion ***************************** args.gotpl *****************************
|
|
|
+
|
|
|
+// region ************************** directives.gotpl **************************
|
|
|
+
|
|
|
+// endregion ************************** directives.gotpl **************************
|
|
|
+
|
|
|
+// region **************************** field.gotpl *****************************
|
|
|
+
|
|
|
+func (ec *executionContext) _AuthPayload_token(ctx context.Context, field graphql.CollectedField, obj *model.AuthPayload) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_AuthPayload_token,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Token, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_AuthPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "AuthPayload",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _AuthPayload_user(ctx context.Context, field graphql.CollectedField, obj *model.AuthPayload) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_AuthPayload_user,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.User, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_AuthPayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "AuthPayload",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Channel_id(ctx context.Context, field graphql.CollectedField, obj *model.Channel) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Channel_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Channel_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Channel",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Channel_participants(ctx context.Context, field graphql.CollectedField, obj *model.Channel) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Channel_participants,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Participants, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUserᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Channel_participants(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Channel",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Channel_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Channel) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Channel_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Channel_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Channel",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Channel_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Channel) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Channel_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Channel_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Channel",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_id(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_conversationId(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_conversationId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ConversationID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_conversationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_senderId(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_senderId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.SenderID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_senderId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_sender(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_sender,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Sender, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_sender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_content(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_content,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Content, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_sentAt(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_sentAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.SentAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_sentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Message) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Message_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Message_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Message",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_login(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_login,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().Login(ctx, fc.Args["email"].(string), fc.Args["password"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNAuthPayload2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐAuthPayload,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_login(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "token":
|
|
|
+ return ec.fieldContext_AuthPayload_token(ctx, field)
|
|
|
+ case "user":
|
|
|
+ return ec.fieldContext_AuthPayload_user(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type AuthPayload", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_login_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createUser,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateUser(ctx, fc.Args["input"].(model.NewUser))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateUser,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateUser(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateUserInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteUser,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteUser(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createNote(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createNote,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateNote(ctx, fc.Args["input"].(model.NewNote))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNNote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Note_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Note_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Note_content(ctx, field)
|
|
|
+ case "userId":
|
|
|
+ return ec.fieldContext_Note_userId(ctx, field)
|
|
|
+ case "user":
|
|
|
+ return ec.fieldContext_Note_user(ctx, field)
|
|
|
+ case "serviceId":
|
|
|
+ return ec.fieldContext_Note_serviceId(ctx, field)
|
|
|
+ case "service":
|
|
|
+ return ec.fieldContext_Note_service(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Note_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Note_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Note", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createNote_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateNote(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateNote,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateNote(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateNoteInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNNote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Note_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Note_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Note_content(ctx, field)
|
|
|
+ case "userId":
|
|
|
+ return ec.fieldContext_Note_userId(ctx, field)
|
|
|
+ case "user":
|
|
|
+ return ec.fieldContext_Note_user(ctx, field)
|
|
|
+ case "serviceId":
|
|
|
+ return ec.fieldContext_Note_serviceId(ctx, field)
|
|
|
+ case "service":
|
|
|
+ return ec.fieldContext_Note_service(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Note_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Note_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Note", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateNote_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteNote(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteNote,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteNote(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteNote_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createRole(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createRole,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateRole(ctx, fc.Args["input"].(model.NewRole))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNRole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Role_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Role_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Role_description(ctx, field)
|
|
|
+ case "permissions":
|
|
|
+ return ec.fieldContext_Role_permissions(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Role", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createRole_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateRole(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateRole,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateRole(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateRoleInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNRole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Role_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Role_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Role_description(ctx, field)
|
|
|
+ case "permissions":
|
|
|
+ return ec.fieldContext_Role_permissions(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Role", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateRole_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteRole(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteRole,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteRole(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteRole_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createPermission(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createPermission,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreatePermission(ctx, fc.Args["input"].(model.NewPermission))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createPermission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Permission_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_Permission_code(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Permission_description(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Permission", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createPermission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updatePermission(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updatePermission,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdatePermission(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdatePermissionInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updatePermission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Permission_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_Permission_code(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Permission_description(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Permission", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updatePermission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deletePermission(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deletePermission,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeletePermission(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deletePermission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deletePermission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createService,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateService(ctx, fc.Args["input"].(model.NewService))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Service_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Service_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Service_description(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Service_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Service_createdBy(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Service_participants(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_Service_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Service_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Service_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Service", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateService,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateService(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateServiceInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Service_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Service_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Service_description(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Service_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Service_createdBy(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Service_participants(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_Service_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Service_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Service_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Service", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteService,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteService(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createTask,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateTask(ctx, fc.Args["input"].(model.NewTask))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateTask,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateTask(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateTaskInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteTask,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteTask(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createTaskStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createTaskStatus,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateTaskStatus(ctx, fc.Args["input"].(model.NewTaskStatus))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createTaskStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_TaskStatus_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_TaskStatus_code(ctx, field)
|
|
|
+ case "label":
|
|
|
+ return ec.fieldContext_TaskStatus_label(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_TaskStatus_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_TaskStatus_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_TaskStatus_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type TaskStatus", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createTaskStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateTaskStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateTaskStatus,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateTaskStatus(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateTaskStatusInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateTaskStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_TaskStatus_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_TaskStatus_code(ctx, field)
|
|
|
+ case "label":
|
|
|
+ return ec.fieldContext_TaskStatus_label(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_TaskStatus_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_TaskStatus_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_TaskStatus_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type TaskStatus", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateTaskStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteTaskStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteTaskStatus,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteTaskStatus(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteTaskStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteTaskStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createChannel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createChannel,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateChannel(ctx, fc.Args["input"].(model.NewChannel))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createChannel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Channel_id(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Channel_participants(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Channel_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Channel_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Channel", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createChannel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateChannel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateChannel,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateChannel(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateChannelInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateChannel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Channel_id(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Channel_participants(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Channel_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Channel_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Channel", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateChannel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteChannel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteChannel,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteChannel(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteChannel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteChannel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_createMessage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_createMessage,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().CreateMessage(ctx, fc.Args["input"].(model.NewMessage))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_createMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Message_id(ctx, field)
|
|
|
+ case "conversationId":
|
|
|
+ return ec.fieldContext_Message_conversationId(ctx, field)
|
|
|
+ case "senderId":
|
|
|
+ return ec.fieldContext_Message_senderId(ctx, field)
|
|
|
+ case "sender":
|
|
|
+ return ec.fieldContext_Message_sender(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Message_content(ctx, field)
|
|
|
+ case "sentAt":
|
|
|
+ return ec.fieldContext_Message_sentAt(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Message_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Message_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Message", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_createMessage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_updateMessage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_updateMessage,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().UpdateMessage(ctx, fc.Args["id"].(string), fc.Args["input"].(model.UpdateMessageInput))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_updateMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Message_id(ctx, field)
|
|
|
+ case "conversationId":
|
|
|
+ return ec.fieldContext_Message_conversationId(ctx, field)
|
|
|
+ case "senderId":
|
|
|
+ return ec.fieldContext_Message_senderId(ctx, field)
|
|
|
+ case "sender":
|
|
|
+ return ec.fieldContext_Message_sender(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Message_content(ctx, field)
|
|
|
+ case "sentAt":
|
|
|
+ return ec.fieldContext_Message_sentAt(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Message_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Message_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Message", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_updateMessage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation_deleteMessage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Mutation_deleteMessage,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Mutation().DeleteMessage(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Mutation_deleteMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Mutation_deleteMessage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_id(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_title(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_title,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Title, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_content(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_content,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Content, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_userId(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_userId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UserID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_userId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_user(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_user,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.User, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_serviceId(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_serviceId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ServiceID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_serviceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_service(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_service,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Service, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_service(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Service_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Service_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Service_description(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Service_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Service_createdBy(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Service_participants(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_Service_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Service_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Service_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Service", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Note) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Note_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Note_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Note",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Permission_id(ctx context.Context, field graphql.CollectedField, obj *model.Permission) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Permission_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Permission_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Permission",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Permission_code(ctx context.Context, field graphql.CollectedField, obj *model.Permission) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Permission_code,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Code, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Permission_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Permission",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Permission_description(ctx context.Context, field graphql.CollectedField, obj *model.Permission) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Permission_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Permission_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Permission",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_users,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Users(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUserᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_user,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().User(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_notes,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Notes(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNNote2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNoteᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Note_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Note_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Note_content(ctx, field)
|
|
|
+ case "userId":
|
|
|
+ return ec.fieldContext_Note_userId(ctx, field)
|
|
|
+ case "user":
|
|
|
+ return ec.fieldContext_Note_user(ctx, field)
|
|
|
+ case "serviceId":
|
|
|
+ return ec.fieldContext_Note_serviceId(ctx, field)
|
|
|
+ case "service":
|
|
|
+ return ec.fieldContext_Note_service(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Note_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Note_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Note", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_note(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_note,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Note(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalONote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Note_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Note_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Note_content(ctx, field)
|
|
|
+ case "userId":
|
|
|
+ return ec.fieldContext_Note_userId(ctx, field)
|
|
|
+ case "user":
|
|
|
+ return ec.fieldContext_Note_user(ctx, field)
|
|
|
+ case "serviceId":
|
|
|
+ return ec.fieldContext_Note_serviceId(ctx, field)
|
|
|
+ case "service":
|
|
|
+ return ec.fieldContext_Note_service(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Note_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Note_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Note", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_note_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_roles(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_roles,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Roles(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNRole2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRoleᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_roles(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Role_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Role_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Role_description(ctx, field)
|
|
|
+ case "permissions":
|
|
|
+ return ec.fieldContext_Role_permissions(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Role", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_role(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_role,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Role(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalORole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_role(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Role_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Role_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Role_description(ctx, field)
|
|
|
+ case "permissions":
|
|
|
+ return ec.fieldContext_Role_permissions(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Role", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_role_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_permissions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_permissions,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Permissions(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNPermission2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermissionᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_permissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Permission_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_Permission_code(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Permission_description(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Permission", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_permission(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_permission,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Permission(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Permission_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_Permission_code(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Permission_description(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Permission", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_services(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_services,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Services(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNService2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐServiceᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_services(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Service_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Service_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Service_description(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Service_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Service_createdBy(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Service_participants(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_Service_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Service_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Service_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Service", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_service(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_service,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Service(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_service(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Service_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Service_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Service_description(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Service_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Service_createdBy(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Service_participants(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_Service_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Service_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Service_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Service", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_service_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_tasks,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Tasks(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_task,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Task(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_task_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_taskStatuses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_taskStatuses,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().TaskStatuses(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTaskStatus2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatusᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_taskStatuses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_TaskStatus_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_TaskStatus_code(ctx, field)
|
|
|
+ case "label":
|
|
|
+ return ec.fieldContext_TaskStatus_label(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_TaskStatus_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_TaskStatus_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_TaskStatus_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type TaskStatus", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_taskStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_taskStatus,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().TaskStatus(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_taskStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_TaskStatus_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_TaskStatus_code(ctx, field)
|
|
|
+ case "label":
|
|
|
+ return ec.fieldContext_TaskStatus_label(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_TaskStatus_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_TaskStatus_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_TaskStatus_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type TaskStatus", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_taskStatus_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_channels(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_channels,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Channels(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNChannel2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannelᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_channels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Channel_id(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Channel_participants(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Channel_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Channel_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Channel", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_channel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_channel,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Channel(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_channel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Channel_id(ctx, field)
|
|
|
+ case "participants":
|
|
|
+ return ec.fieldContext_Channel_participants(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Channel_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Channel_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Channel", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_channel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_messages(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_messages,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Query().Messages(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNMessage2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessageᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_messages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Message_id(ctx, field)
|
|
|
+ case "conversationId":
|
|
|
+ return ec.fieldContext_Message_conversationId(ctx, field)
|
|
|
+ case "senderId":
|
|
|
+ return ec.fieldContext_Message_senderId(ctx, field)
|
|
|
+ case "sender":
|
|
|
+ return ec.fieldContext_Message_sender(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Message_content(ctx, field)
|
|
|
+ case "sentAt":
|
|
|
+ return ec.fieldContext_Message_sentAt(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Message_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Message_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Message", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query_message(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query_message,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.Resolvers.Query().Message(ctx, fc.Args["id"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Message_id(ctx, field)
|
|
|
+ case "conversationId":
|
|
|
+ return ec.fieldContext_Message_conversationId(ctx, field)
|
|
|
+ case "senderId":
|
|
|
+ return ec.fieldContext_Message_senderId(ctx, field)
|
|
|
+ case "sender":
|
|
|
+ return ec.fieldContext_Message_sender(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Message_content(ctx, field)
|
|
|
+ case "sentAt":
|
|
|
+ return ec.fieldContext_Message_sentAt(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Message_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Message_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Message", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query_message_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query___type,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return ec.IntrospectType(fc.Args["name"].(string))
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Query___schema,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.IntrospectSchema()
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Schema_description(ctx, field)
|
|
|
+ case "types":
|
|
|
+ return ec.fieldContext___Schema_types(ctx, field)
|
|
|
+ case "queryType":
|
|
|
+ return ec.fieldContext___Schema_queryType(ctx, field)
|
|
|
+ case "mutationType":
|
|
|
+ return ec.fieldContext___Schema_mutationType(ctx, field)
|
|
|
+ case "subscriptionType":
|
|
|
+ return ec.fieldContext___Schema_subscriptionType(ctx, field)
|
|
|
+ case "directives":
|
|
|
+ return ec.fieldContext___Schema_directives(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Role_id(ctx context.Context, field graphql.CollectedField, obj *model.Role) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Role_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Role_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Role",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Role_name(ctx context.Context, field graphql.CollectedField, obj *model.Role) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Role_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Role_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Role",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Role_description(ctx context.Context, field graphql.CollectedField, obj *model.Role) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Role_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Role_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Role",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Role_permissions(ctx context.Context, field graphql.CollectedField, obj *model.Role) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Role_permissions,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Permissions, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNPermission2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermissionᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Role_permissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Role",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Permission_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_Permission_code(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Permission_description(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Permission", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_id(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_name(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_description(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_createdById(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_createdById,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedByID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_createdById(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_createdBy,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedBy, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_participants(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_participants,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Participants, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUserᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_participants(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_tasks(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_tasks,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Tasks, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Service_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Service_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Service",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Subscription_taskCreated(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
|
|
|
+ return graphql.ResolveFieldStream(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Subscription_taskCreated,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Subscription().TaskCreated(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Subscription_taskCreated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Subscription",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Subscription_taskUpdated(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
|
|
|
+ return graphql.ResolveFieldStream(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Subscription_taskUpdated,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Subscription().TaskUpdated(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Subscription_taskUpdated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Subscription",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Subscription_taskDeleted(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
|
|
|
+ return graphql.ResolveFieldStream(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Subscription_taskDeleted,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Subscription().TaskDeleted(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Subscription_taskDeleted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Subscription",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Subscription_messageAdded(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) {
|
|
|
+ return graphql.ResolveFieldStream(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Subscription_messageAdded,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return ec.Resolvers.Subscription().MessageAdded(ctx)
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Subscription_messageAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Subscription",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: true,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Message_id(ctx, field)
|
|
|
+ case "conversationId":
|
|
|
+ return ec.fieldContext_Message_conversationId(ctx, field)
|
|
|
+ case "senderId":
|
|
|
+ return ec.fieldContext_Message_senderId(ctx, field)
|
|
|
+ case "sender":
|
|
|
+ return ec.fieldContext_Message_sender(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Message_content(ctx, field)
|
|
|
+ case "sentAt":
|
|
|
+ return ec.fieldContext_Message_sentAt(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Message_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Message_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Message", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_title(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_title,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Title, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_content(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_content,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Content, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_createdById(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_createdById,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedByID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_createdById(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_createdBy,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedBy, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_assigneeId(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_assigneeId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.AssigneeID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOID2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_assigneeId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_assignee,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Assignee, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_assignee(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_User_id(ctx, field)
|
|
|
+ case "email":
|
|
|
+ return ec.fieldContext_User_email(ctx, field)
|
|
|
+ case "password":
|
|
|
+ return ec.fieldContext_User_password(ctx, field)
|
|
|
+ case "roles":
|
|
|
+ return ec.fieldContext_User_roles(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_User_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_User_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_statusId(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_statusId,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.StatusID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOID2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_statusId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_status(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_status,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Status, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_TaskStatus_id(ctx, field)
|
|
|
+ case "code":
|
|
|
+ return ec.fieldContext_TaskStatus_code(ctx, field)
|
|
|
+ case "label":
|
|
|
+ return ec.fieldContext_TaskStatus_label(ctx, field)
|
|
|
+ case "tasks":
|
|
|
+ return ec.fieldContext_TaskStatus_tasks(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_TaskStatus_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_TaskStatus_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type TaskStatus", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_dueDate(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_dueDate,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.DueDate, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_priority(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_priority,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Priority, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.Task) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_Task_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "Task",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_id(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_code(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_code,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Code, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_label(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_label,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Label, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_tasks(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_tasks,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Tasks, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNTask2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Task_id(ctx, field)
|
|
|
+ case "title":
|
|
|
+ return ec.fieldContext_Task_title(ctx, field)
|
|
|
+ case "content":
|
|
|
+ return ec.fieldContext_Task_content(ctx, field)
|
|
|
+ case "createdById":
|
|
|
+ return ec.fieldContext_Task_createdById(ctx, field)
|
|
|
+ case "createdBy":
|
|
|
+ return ec.fieldContext_Task_createdBy(ctx, field)
|
|
|
+ case "assigneeId":
|
|
|
+ return ec.fieldContext_Task_assigneeId(ctx, field)
|
|
|
+ case "assignee":
|
|
|
+ return ec.fieldContext_Task_assignee(ctx, field)
|
|
|
+ case "statusId":
|
|
|
+ return ec.fieldContext_Task_statusId(ctx, field)
|
|
|
+ case "status":
|
|
|
+ return ec.fieldContext_Task_status(ctx, field)
|
|
|
+ case "dueDate":
|
|
|
+ return ec.fieldContext_Task_dueDate(ctx, field)
|
|
|
+ case "priority":
|
|
|
+ return ec.fieldContext_Task_priority(ctx, field)
|
|
|
+ case "createdAt":
|
|
|
+ return ec.fieldContext_Task_createdAt(ctx, field)
|
|
|
+ case "updatedAt":
|
|
|
+ return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.TaskStatus) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_TaskStatus_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_TaskStatus_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "TaskStatus",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_id,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.ID, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNID2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type ID does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_email,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Email, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_password(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_password,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Password, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_roles(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_roles,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Roles, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNRole2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRoleᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_roles(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "id":
|
|
|
+ return ec.fieldContext_Role_id(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext_Role_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext_Role_description(ctx, field)
|
|
|
+ case "permissions":
|
|
|
+ return ec.fieldContext_Role_permissions(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type Role", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_createdAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.CreatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext_User_updatedAt,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.UpdatedAt, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "User",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Directive_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Directive",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Directive_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Directive",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Directive_isRepeatable,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.IsRepeatable, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Directive",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Directive_locations,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Locations, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__DirectiveLocation2ᚕstringᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Directive",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type __DirectiveLocation does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Directive_args,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Args, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Directive",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
+ case "type":
|
|
|
+ return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
+ case "defaultValue":
|
|
|
+ return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
|
+ case "isDeprecated":
|
|
|
+ return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
+ case "deprecationReason":
|
|
|
+ return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___EnumValue_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__EnumValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___EnumValue_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__EnumValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___EnumValue_isDeprecated,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.IsDeprecated(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__EnumValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___EnumValue_deprecationReason,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.DeprecationReason(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__EnumValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_args,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Args, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
+ case "type":
|
|
|
+ return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
+ case "defaultValue":
|
|
|
+ return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
|
+ case "isDeprecated":
|
|
|
+ return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
+ case "deprecationReason":
|
|
|
+ return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_type,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Type, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_isDeprecated,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.IsDeprecated(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Field_deprecationReason,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.DeprecationReason(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Field",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNString2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_type,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Type, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_defaultValue,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.DefaultValue, nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: false,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_isDeprecated,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.IsDeprecated(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalNBoolean2bool,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___InputValue_deprecationReason,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.DeprecationReason(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__InputValue",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_types,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Types(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_queryType,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.QueryType(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_mutationType,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.MutationType(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_subscriptionType,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.SubscriptionType(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Schema_directives,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Directives(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Schema",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Directive_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Directive_description(ctx, field)
|
|
|
+ case "isRepeatable":
|
|
|
+ return ec.fieldContext___Directive_isRepeatable(ctx, field)
|
|
|
+ case "locations":
|
|
|
+ return ec.fieldContext___Directive_locations(ctx, field)
|
|
|
+ case "args":
|
|
|
+ return ec.fieldContext___Directive_args(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_kind,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Kind(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalN__TypeKind2string,
|
|
|
+ true,
|
|
|
+ true,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type __TypeKind does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_name,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Name(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_description,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Description(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_specifiedByURL,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.SpecifiedByURL(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOString2ᚖstring,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type String does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_fields,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Field_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Field_description(ctx, field)
|
|
|
+ case "args":
|
|
|
+ return ec.fieldContext___Field_args(ctx, field)
|
|
|
+ case "type":
|
|
|
+ return ec.fieldContext___Field_type(ctx, field)
|
|
|
+ case "isDeprecated":
|
|
|
+ return ec.fieldContext___Field_isDeprecated(ctx, field)
|
|
|
+ case "deprecationReason":
|
|
|
+ return ec.fieldContext___Field_deprecationReason(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_interfaces,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.Interfaces(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_possibleTypes,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.PossibleTypes(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_enumValues,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___EnumValue_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___EnumValue_description(ctx, field)
|
|
|
+ case "isDeprecated":
|
|
|
+ return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
|
|
|
+ case "deprecationReason":
|
|
|
+ return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ err = ec.Recover(ctx, r)
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ ctx = graphql.WithFieldContext(ctx, fc)
|
|
|
+ if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
|
+ ec.Error(ctx, err)
|
|
|
+ return fc, err
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_inputFields,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.InputFields(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___InputValue_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___InputValue_description(ctx, field)
|
|
|
+ case "type":
|
|
|
+ return ec.fieldContext___InputValue_type(ctx, field)
|
|
|
+ case "defaultValue":
|
|
|
+ return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
|
+ case "isDeprecated":
|
|
|
+ return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
|
+ case "deprecationReason":
|
|
|
+ return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_ofType,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.OfType(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ switch field.Name {
|
|
|
+ case "kind":
|
|
|
+ return ec.fieldContext___Type_kind(ctx, field)
|
|
|
+ case "name":
|
|
|
+ return ec.fieldContext___Type_name(ctx, field)
|
|
|
+ case "description":
|
|
|
+ return ec.fieldContext___Type_description(ctx, field)
|
|
|
+ case "specifiedByURL":
|
|
|
+ return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
|
+ case "fields":
|
|
|
+ return ec.fieldContext___Type_fields(ctx, field)
|
|
|
+ case "interfaces":
|
|
|
+ return ec.fieldContext___Type_interfaces(ctx, field)
|
|
|
+ case "possibleTypes":
|
|
|
+ return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
|
+ case "enumValues":
|
|
|
+ return ec.fieldContext___Type_enumValues(ctx, field)
|
|
|
+ case "inputFields":
|
|
|
+ return ec.fieldContext___Type_inputFields(ctx, field)
|
|
|
+ case "ofType":
|
|
|
+ return ec.fieldContext___Type_ofType(ctx, field)
|
|
|
+ case "isOneOf":
|
|
|
+ return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
|
+ }
|
|
|
+ return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
|
+ return graphql.ResolveField(
|
|
|
+ ctx,
|
|
|
+ ec.OperationContext,
|
|
|
+ field,
|
|
|
+ ec.fieldContext___Type_isOneOf,
|
|
|
+ func(ctx context.Context) (any, error) {
|
|
|
+ return obj.IsOneOf(), nil
|
|
|
+ },
|
|
|
+ nil,
|
|
|
+ ec.marshalOBoolean2bool,
|
|
|
+ true,
|
|
|
+ false,
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
|
+ fc = &graphql.FieldContext{
|
|
|
+ Object: "__Type",
|
|
|
+ Field: field,
|
|
|
+ IsMethod: true,
|
|
|
+ IsResolver: false,
|
|
|
+ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
|
+ return nil, errors.New("field of type Boolean does not have child fields")
|
|
|
+ },
|
|
|
+ }
|
|
|
+ return fc, nil
|
|
|
+}
|
|
|
+
|
|
|
+// endregion **************************** field.gotpl *****************************
|
|
|
+
|
|
|
+// region **************************** input.gotpl *****************************
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewChannel(ctx context.Context, obj any) (model.NewChannel, error) {
|
|
|
+ var it model.NewChannel
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"participants"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "participants":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("participants"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Participants = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewMessage(ctx context.Context, obj any) (model.NewMessage, error) {
|
|
|
+ var it model.NewMessage
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"conversationId", "senderId", "content"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "conversationId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("conversationId"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.ConversationID = data
|
|
|
+ case "senderId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("senderId"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.SenderID = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewNote(ctx context.Context, obj any) (model.NewNote, error) {
|
|
|
+ var it model.NewNote
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"title", "content", "userId", "serviceId"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "title":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Title = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ case "userId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.UserID = data
|
|
|
+ case "serviceId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.ServiceID = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewPermission(ctx context.Context, obj any) (model.NewPermission, error) {
|
|
|
+ var it model.NewPermission
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"code", "description"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "code":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Code = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewRole(ctx context.Context, obj any) (model.NewRole, error) {
|
|
|
+ var it model.NewRole
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"name", "description", "permissions"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "name":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Name = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ case "permissions":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("permissions"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Permissions = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewService(ctx context.Context, obj any) (model.NewService, error) {
|
|
|
+ var it model.NewService
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"name", "description", "createdById", "participants"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "name":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Name = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ case "createdById":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdById"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.CreatedByID = data
|
|
|
+ case "participants":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("participants"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Participants = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewTask(ctx context.Context, obj any) (model.NewTask, error) {
|
|
|
+ var it model.NewTask
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"title", "content", "createdById", "assigneeId", "statusId", "dueDate", "priority"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "title":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Title = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ case "createdById":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdById"))
|
|
|
+ data, err := ec.unmarshalNID2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.CreatedByID = data
|
|
|
+ case "assigneeId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assigneeId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.AssigneeID = data
|
|
|
+ case "statusId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.StatusID = data
|
|
|
+ case "dueDate":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.DueDate = data
|
|
|
+ case "priority":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Priority = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewTaskStatus(ctx context.Context, obj any) (model.NewTaskStatus, error) {
|
|
|
+ var it model.NewTaskStatus
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"code", "label"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "code":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Code = data
|
|
|
+ case "label":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Label = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputNewUser(ctx context.Context, obj any) (model.NewUser, error) {
|
|
|
+ var it model.NewUser
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"email", "password", "roles"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "email":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Email = data
|
|
|
+ case "password":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
|
+ data, err := ec.unmarshalNString2string(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Password = data
|
|
|
+ case "roles":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Roles = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateChannelInput(ctx context.Context, obj any) (model.UpdateChannelInput, error) {
|
|
|
+ var it model.UpdateChannelInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"participants"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "participants":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("participants"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Participants = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateMessageInput(ctx context.Context, obj any) (model.UpdateMessageInput, error) {
|
|
|
+ var it model.UpdateMessageInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"conversationId", "senderId", "content"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "conversationId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("conversationId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.ConversationID = data
|
|
|
+ case "senderId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("senderId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.SenderID = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateNoteInput(ctx context.Context, obj any) (model.UpdateNoteInput, error) {
|
|
|
+ var it model.UpdateNoteInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"title", "content", "userId", "serviceId"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "title":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Title = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ case "userId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.UserID = data
|
|
|
+ case "serviceId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.ServiceID = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdatePermissionInput(ctx context.Context, obj any) (model.UpdatePermissionInput, error) {
|
|
|
+ var it model.UpdatePermissionInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"code", "description"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "code":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Code = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateRoleInput(ctx context.Context, obj any) (model.UpdateRoleInput, error) {
|
|
|
+ var it model.UpdateRoleInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"name", "description", "permissions"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "name":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Name = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ case "permissions":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("permissions"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Permissions = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateServiceInput(ctx context.Context, obj any) (model.UpdateServiceInput, error) {
|
|
|
+ var it model.UpdateServiceInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"name", "description", "createdById", "participants"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "name":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Name = data
|
|
|
+ case "description":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Description = data
|
|
|
+ case "createdById":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdById"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.CreatedByID = data
|
|
|
+ case "participants":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("participants"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Participants = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateTaskInput(ctx context.Context, obj any) (model.UpdateTaskInput, error) {
|
|
|
+ var it model.UpdateTaskInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"title", "content", "createdById", "assigneeId", "statusId", "dueDate", "priority"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "title":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Title = data
|
|
|
+ case "content":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Content = data
|
|
|
+ case "createdById":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdById"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.CreatedByID = data
|
|
|
+ case "assigneeId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assigneeId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.AssigneeID = data
|
|
|
+ case "statusId":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusId"))
|
|
|
+ data, err := ec.unmarshalOID2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.StatusID = data
|
|
|
+ case "dueDate":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.DueDate = data
|
|
|
+ case "priority":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Priority = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateTaskStatusInput(ctx context.Context, obj any) (model.UpdateTaskStatusInput, error) {
|
|
|
+ var it model.UpdateTaskStatusInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"code", "label"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "code":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Code = data
|
|
|
+ case "label":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Label = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (model.UpdateUserInput, error) {
|
|
|
+ var it model.UpdateUserInput
|
|
|
+ asMap := map[string]any{}
|
|
|
+ for k, v := range obj.(map[string]any) {
|
|
|
+ asMap[k] = v
|
|
|
+ }
|
|
|
+
|
|
|
+ fieldsInOrder := [...]string{"email", "password", "roles"}
|
|
|
+ for _, k := range fieldsInOrder {
|
|
|
+ v, ok := asMap[k]
|
|
|
+ if !ok {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ switch k {
|
|
|
+ case "email":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Email = data
|
|
|
+ case "password":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
|
+ data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Password = data
|
|
|
+ case "roles":
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles"))
|
|
|
+ data, err := ec.unmarshalNID2ᚕstringᚄ(ctx, v)
|
|
|
+ if err != nil {
|
|
|
+ return it, err
|
|
|
+ }
|
|
|
+ it.Roles = data
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return it, nil
|
|
|
+}
|
|
|
+
|
|
|
+// endregion **************************** input.gotpl *****************************
|
|
|
+
|
|
|
+// region ************************** interface.gotpl ***************************
|
|
|
+
|
|
|
+// endregion ************************** interface.gotpl ***************************
|
|
|
+
|
|
|
+// region **************************** object.gotpl ****************************
|
|
|
+
|
|
|
+var authPayloadImplementors = []string{"AuthPayload"}
|
|
|
+
|
|
|
+func (ec *executionContext) _AuthPayload(ctx context.Context, sel ast.SelectionSet, obj *model.AuthPayload) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, authPayloadImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("AuthPayload")
|
|
|
+ case "token":
|
|
|
+ out.Values[i] = ec._AuthPayload_token(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "user":
|
|
|
+ out.Values[i] = ec._AuthPayload_user(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var channelImplementors = []string{"Channel"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Channel(ctx context.Context, sel ast.SelectionSet, obj *model.Channel) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, channelImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Channel")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Channel_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "participants":
|
|
|
+ out.Values[i] = ec._Channel_participants(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._Channel_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._Channel_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var messageImplementors = []string{"Message"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, obj *model.Message) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, messageImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Message")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Message_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "conversationId":
|
|
|
+ out.Values[i] = ec._Message_conversationId(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "senderId":
|
|
|
+ out.Values[i] = ec._Message_senderId(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "sender":
|
|
|
+ out.Values[i] = ec._Message_sender(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "content":
|
|
|
+ out.Values[i] = ec._Message_content(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "sentAt":
|
|
|
+ out.Values[i] = ec._Message_sentAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._Message_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._Message_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var mutationImplementors = []string{"Mutation"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
|
|
|
+ ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
+ Object: "Mutation",
|
|
|
+ })
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
|
+ Object: field.Name,
|
|
|
+ Field: field,
|
|
|
+ })
|
|
|
+
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Mutation")
|
|
|
+ case "login":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_login(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createUser":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createUser(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateUser":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateUser(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteUser":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteUser(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createNote":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createNote(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateNote":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateNote(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteNote":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteNote(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createRole":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createRole(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateRole":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateRole(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteRole":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteRole(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createPermission":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createPermission(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatePermission":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updatePermission(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deletePermission":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deletePermission(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createService":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createService(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateService":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateService(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteService":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteService(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createTask":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createTask(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateTask":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateTask(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteTask":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteTask(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createTaskStatus":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createTaskStatus(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateTaskStatus":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateTaskStatus(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteTaskStatus":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteTaskStatus(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createChannel":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createChannel(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateChannel":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateChannel(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteChannel":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteChannel(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createMessage":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_createMessage(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updateMessage":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_updateMessage(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deleteMessage":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Mutation_deleteMessage(ctx, field)
|
|
|
+ })
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var noteImplementors = []string{"Note"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj *model.Note) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, noteImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Note")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Note_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "title":
|
|
|
+ out.Values[i] = ec._Note_title(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "content":
|
|
|
+ out.Values[i] = ec._Note_content(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "userId":
|
|
|
+ out.Values[i] = ec._Note_userId(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "user":
|
|
|
+ out.Values[i] = ec._Note_user(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "serviceId":
|
|
|
+ out.Values[i] = ec._Note_serviceId(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "service":
|
|
|
+ out.Values[i] = ec._Note_service(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._Note_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._Note_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var permissionImplementors = []string{"Permission"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Permission(ctx context.Context, sel ast.SelectionSet, obj *model.Permission) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, permissionImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Permission")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Permission_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "code":
|
|
|
+ out.Values[i] = ec._Permission_code(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec._Permission_description(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var queryImplementors = []string{"Query"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
|
|
|
+ ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
+ Object: "Query",
|
|
|
+ })
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
|
+ Object: field.Name,
|
|
|
+ Field: field,
|
|
|
+ })
|
|
|
+
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Query")
|
|
|
+ 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) })
|
|
|
+ case "user":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *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)
|
|
|
+ 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) })
|
|
|
+ case "notes":
|
|
|
+ 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_notes(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) })
|
|
|
+ case "note":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_note(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "roles":
|
|
|
+ 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_roles(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) })
|
|
|
+ case "role":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_role(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "permissions":
|
|
|
+ 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_permissions(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) })
|
|
|
+ case "permission":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_permission(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "services":
|
|
|
+ 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_services(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) })
|
|
|
+ case "service":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_service(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "tasks":
|
|
|
+ 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_tasks(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) })
|
|
|
+ case "task":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_task(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "taskStatuses":
|
|
|
+ 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_taskStatuses(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) })
|
|
|
+ case "taskStatus":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_taskStatus(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "channels":
|
|
|
+ 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_channels(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) })
|
|
|
+ case "channel":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_channel(ctx, field)
|
|
|
+ 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) })
|
|
|
+ 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) })
|
|
|
+ case "message":
|
|
|
+ field := field
|
|
|
+
|
|
|
+ innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
|
+ defer func() {
|
|
|
+ if r := recover(); r != nil {
|
|
|
+ ec.Error(ctx, ec.Recover(ctx, r))
|
|
|
+ }
|
|
|
+ }()
|
|
|
+ res = ec._Query_message(ctx, field)
|
|
|
+ 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) })
|
|
|
+ case "__type":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Query___type(ctx, field)
|
|
|
+ })
|
|
|
+ case "__schema":
|
|
|
+ out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
|
+ return ec._Query___schema(ctx, field)
|
|
|
+ })
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var roleImplementors = []string{"Role"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Role(ctx context.Context, sel ast.SelectionSet, obj *model.Role) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, roleImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Role")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Role_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec._Role_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec._Role_description(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "permissions":
|
|
|
+ out.Values[i] = ec._Role_permissions(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var serviceImplementors = []string{"Service"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, obj *model.Service) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, serviceImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Service")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Service_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec._Service_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec._Service_description(ctx, field, obj)
|
|
|
+ case "createdById":
|
|
|
+ out.Values[i] = ec._Service_createdById(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdBy":
|
|
|
+ out.Values[i] = ec._Service_createdBy(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "participants":
|
|
|
+ out.Values[i] = ec._Service_participants(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "tasks":
|
|
|
+ out.Values[i] = ec._Service_tasks(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._Service_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._Service_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var subscriptionImplementors = []string{"Subscription"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors)
|
|
|
+ ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
|
+ Object: "Subscription",
|
|
|
+ })
|
|
|
+ if len(fields) != 1 {
|
|
|
+ graphql.AddErrorf(ctx, "must subscribe to exactly one stream")
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+
|
|
|
+ switch fields[0].Name {
|
|
|
+ case "taskCreated":
|
|
|
+ return ec._Subscription_taskCreated(ctx, fields[0])
|
|
|
+ case "taskUpdated":
|
|
|
+ return ec._Subscription_taskUpdated(ctx, fields[0])
|
|
|
+ case "taskDeleted":
|
|
|
+ return ec._Subscription_taskDeleted(ctx, fields[0])
|
|
|
+ case "messageAdded":
|
|
|
+ return ec._Subscription_messageAdded(ctx, fields[0])
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(fields[0].Name))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+var taskImplementors = []string{"Task"}
|
|
|
+
|
|
|
+func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj *model.Task) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, taskImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("Task")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._Task_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "title":
|
|
|
+ out.Values[i] = ec._Task_title(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "content":
|
|
|
+ out.Values[i] = ec._Task_content(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdById":
|
|
|
+ out.Values[i] = ec._Task_createdById(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdBy":
|
|
|
+ out.Values[i] = ec._Task_createdBy(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "assigneeId":
|
|
|
+ out.Values[i] = ec._Task_assigneeId(ctx, field, obj)
|
|
|
+ case "assignee":
|
|
|
+ out.Values[i] = ec._Task_assignee(ctx, field, obj)
|
|
|
+ case "statusId":
|
|
|
+ out.Values[i] = ec._Task_statusId(ctx, field, obj)
|
|
|
+ case "status":
|
|
|
+ out.Values[i] = ec._Task_status(ctx, field, obj)
|
|
|
+ case "dueDate":
|
|
|
+ out.Values[i] = ec._Task_dueDate(ctx, field, obj)
|
|
|
+ case "priority":
|
|
|
+ out.Values[i] = ec._Task_priority(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._Task_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._Task_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var taskStatusImplementors = []string{"TaskStatus"}
|
|
|
+
|
|
|
+func (ec *executionContext) _TaskStatus(ctx context.Context, sel ast.SelectionSet, obj *model.TaskStatus) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, taskStatusImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("TaskStatus")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._TaskStatus_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "code":
|
|
|
+ out.Values[i] = ec._TaskStatus_code(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "label":
|
|
|
+ out.Values[i] = ec._TaskStatus_label(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "tasks":
|
|
|
+ out.Values[i] = ec._TaskStatus_tasks(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._TaskStatus_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._TaskStatus_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var userImplementors = []string{"User"}
|
|
|
+
|
|
|
+func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("User")
|
|
|
+ case "id":
|
|
|
+ out.Values[i] = ec._User_id(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "email":
|
|
|
+ out.Values[i] = ec._User_email(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "password":
|
|
|
+ out.Values[i] = ec._User_password(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "roles":
|
|
|
+ out.Values[i] = ec._User_roles(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "createdAt":
|
|
|
+ out.Values[i] = ec._User_createdAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "updatedAt":
|
|
|
+ out.Values[i] = ec._User_updatedAt(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __DirectiveImplementors = []string{"__Directive"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__Directive")
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec.___Directive_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___Directive_description(ctx, field, obj)
|
|
|
+ case "isRepeatable":
|
|
|
+ out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "locations":
|
|
|
+ out.Values[i] = ec.___Directive_locations(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "args":
|
|
|
+ out.Values[i] = ec.___Directive_args(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __EnumValueImplementors = []string{"__EnumValue"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__EnumValue")
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
|
|
|
+ case "isDeprecated":
|
|
|
+ out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deprecationReason":
|
|
|
+ out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __FieldImplementors = []string{"__Field"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__Field")
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec.___Field_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___Field_description(ctx, field, obj)
|
|
|
+ case "args":
|
|
|
+ out.Values[i] = ec.___Field_args(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "type":
|
|
|
+ out.Values[i] = ec.___Field_type(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "isDeprecated":
|
|
|
+ out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deprecationReason":
|
|
|
+ out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __InputValueImplementors = []string{"__InputValue"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__InputValue")
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec.___InputValue_name(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___InputValue_description(ctx, field, obj)
|
|
|
+ case "type":
|
|
|
+ out.Values[i] = ec.___InputValue_type(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "defaultValue":
|
|
|
+ out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
|
|
+ case "isDeprecated":
|
|
|
+ out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "deprecationReason":
|
|
|
+ out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __SchemaImplementors = []string{"__Schema"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__Schema")
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___Schema_description(ctx, field, obj)
|
|
|
+ case "types":
|
|
|
+ out.Values[i] = ec.___Schema_types(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "queryType":
|
|
|
+ out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "mutationType":
|
|
|
+ out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
|
|
|
+ case "subscriptionType":
|
|
|
+ out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
|
|
|
+ case "directives":
|
|
|
+ out.Values[i] = ec.___Schema_directives(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+var __TypeImplementors = []string{"__Type"}
|
|
|
+
|
|
|
+func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
|
|
|
+ fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
|
|
|
+
|
|
|
+ out := graphql.NewFieldSet(fields)
|
|
|
+ deferred := make(map[string]*graphql.FieldSet)
|
|
|
+ for i, field := range fields {
|
|
|
+ switch field.Name {
|
|
|
+ case "__typename":
|
|
|
+ out.Values[i] = graphql.MarshalString("__Type")
|
|
|
+ case "kind":
|
|
|
+ out.Values[i] = ec.___Type_kind(ctx, field, obj)
|
|
|
+ if out.Values[i] == graphql.Null {
|
|
|
+ out.Invalids++
|
|
|
+ }
|
|
|
+ case "name":
|
|
|
+ out.Values[i] = ec.___Type_name(ctx, field, obj)
|
|
|
+ case "description":
|
|
|
+ out.Values[i] = ec.___Type_description(ctx, field, obj)
|
|
|
+ case "specifiedByURL":
|
|
|
+ out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
|
|
+ case "fields":
|
|
|
+ out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
|
|
+ case "interfaces":
|
|
|
+ out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
|
|
|
+ case "possibleTypes":
|
|
|
+ out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
|
|
|
+ case "enumValues":
|
|
|
+ out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
|
|
|
+ case "inputFields":
|
|
|
+ out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
|
|
+ case "ofType":
|
|
|
+ out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
|
|
+ case "isOneOf":
|
|
|
+ out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
|
|
+ default:
|
|
|
+ panic("unknown field " + strconv.Quote(field.Name))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ out.Dispatch(ctx)
|
|
|
+ if out.Invalids > 0 {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
+
|
|
|
+ for label, dfs := range deferred {
|
|
|
+ ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
|
+ Label: label,
|
|
|
+ Path: graphql.GetPath(ctx),
|
|
|
+ FieldSet: dfs,
|
|
|
+ Context: ctx,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ return out
|
|
|
+}
|
|
|
+
|
|
|
+// endregion **************************** object.gotpl ****************************
|
|
|
+
|
|
|
+// region ***************************** type.gotpl *****************************
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNAuthPayload2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐAuthPayload(ctx context.Context, sel ast.SelectionSet, v model.AuthPayload) graphql.Marshaler {
|
|
|
+ return ec._AuthPayload(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNAuthPayload2ᚖgogsᚗdmscᚗdevᚋarpᚋ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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._AuthPayload(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
|
+ res, err := graphql.UnmarshalBoolean(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
|
+ _ = 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")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNChannel2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel(ctx context.Context, sel ast.SelectionSet, v model.Channel) graphql.Marshaler {
|
|
|
+ return ec._Channel(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNChannel2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannelᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Channel) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel(ctx context.Context, sel ast.SelectionSet, v *model.Channel) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Channel(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) {
|
|
|
+ res, err := graphql.UnmarshalID(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
|
+ _ = sel
|
|
|
+ res := graphql.MarshalID(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")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
|
+ var vSlice []any
|
|
|
+ vSlice = graphql.CoerceList(v)
|
|
|
+ var err error
|
|
|
+ res := make([]string, len(vSlice))
|
|
|
+ for i := range vSlice {
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
+ res[i], err = ec.unmarshalNID2string(ctx, vSlice[i])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
|
+ ret := make(graphql.Array, len(v))
|
|
|
+ for i := range v {
|
|
|
+ ret[i] = ec.marshalNID2string(ctx, sel, v[i])
|
|
|
+ }
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNMessage2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage(ctx context.Context, sel ast.SelectionSet, v model.Message) graphql.Marshaler {
|
|
|
+ return ec._Message(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNMessage2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessageᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Message) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage(ctx context.Context, sel ast.SelectionSet, v *model.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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Message(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewChannel2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewChannel(ctx context.Context, v any) (model.NewChannel, error) {
|
|
|
+ res, err := ec.unmarshalInputNewChannel(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewMessage2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewMessage(ctx context.Context, v any) (model.NewMessage, error) {
|
|
|
+ res, err := ec.unmarshalInputNewMessage(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewNote2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewNote(ctx context.Context, v any) (model.NewNote, error) {
|
|
|
+ res, err := ec.unmarshalInputNewNote(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewPermission2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewPermission(ctx context.Context, v any) (model.NewPermission, error) {
|
|
|
+ res, err := ec.unmarshalInputNewPermission(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewRole2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewRole(ctx context.Context, v any) (model.NewRole, error) {
|
|
|
+ res, err := ec.unmarshalInputNewRole(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewService2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewService(ctx context.Context, v any) (model.NewService, error) {
|
|
|
+ res, err := ec.unmarshalInputNewService(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewTask2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewTask(ctx context.Context, v any) (model.NewTask, error) {
|
|
|
+ res, err := ec.unmarshalInputNewTask(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewTaskStatus2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewTaskStatus(ctx context.Context, v any) (model.NewTaskStatus, error) {
|
|
|
+ res, err := ec.unmarshalInputNewTaskStatus(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNNewUser2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNewUser(ctx context.Context, v any) (model.NewUser, error) {
|
|
|
+ res, err := ec.unmarshalInputNewUser(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNNote2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote(ctx context.Context, sel ast.SelectionSet, v model.Note) graphql.Marshaler {
|
|
|
+ return ec._Note(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNNote2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNoteᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Note) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNNote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNNote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote(ctx context.Context, sel ast.SelectionSet, v *model.Note) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Note(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNPermission2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission(ctx context.Context, sel ast.SelectionSet, v model.Permission) graphql.Marshaler {
|
|
|
+ return ec._Permission(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNPermission2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermissionᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Permission) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission(ctx context.Context, sel ast.SelectionSet, v *model.Permission) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Permission(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNRole2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole(ctx context.Context, sel ast.SelectionSet, v model.Role) graphql.Marshaler {
|
|
|
+ return ec._Role(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNRole2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Role) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNRole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNRole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole(ctx context.Context, sel ast.SelectionSet, v *model.Role) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Role(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNService2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v model.Service) graphql.Marshaler {
|
|
|
+ return ec._Service(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNService2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐServiceᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Service) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v *model.Service) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Service(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
|
|
|
+ res, err := graphql.UnmarshalString(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
|
+ _ = 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")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTask2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask(ctx context.Context, sel ast.SelectionSet, v model.Task) graphql.Marshaler {
|
|
|
+ return ec._Task(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTask2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Task) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask(ctx context.Context, sel ast.SelectionSet, v *model.Task) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Task(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTaskStatus2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus(ctx context.Context, sel ast.SelectionSet, v model.TaskStatus) graphql.Marshaler {
|
|
|
+ return ec._TaskStatus(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTaskStatus2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.TaskStatus) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus(ctx context.Context, sel ast.SelectionSet, v *model.TaskStatus) 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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._TaskStatus(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateChannelInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateChannelInput(ctx context.Context, v any) (model.UpdateChannelInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateChannelInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateMessageInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateMessageInput(ctx context.Context, v any) (model.UpdateMessageInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateMessageInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateNoteInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateNoteInput(ctx context.Context, v any) (model.UpdateNoteInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateNoteInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdatePermissionInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdatePermissionInput(ctx context.Context, v any) (model.UpdatePermissionInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdatePermissionInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateRoleInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateRoleInput(ctx context.Context, v any) (model.UpdateRoleInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateRoleInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateServiceInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateServiceInput(ctx context.Context, v any) (model.UpdateServiceInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateServiceInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateTaskInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateTaskInput(ctx context.Context, v any) (model.UpdateTaskInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateTaskInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateTaskStatusInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateTaskStatusInput(ctx context.Context, v any) (model.UpdateTaskStatusInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateTaskStatusInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalNUpdateUserInput2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUpdateUserInput(ctx context.Context, v any) (model.UpdateUserInput, error) {
|
|
|
+ res, err := ec.unmarshalInputUpdateUserInput(ctx, v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNUser2gogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v model.User) graphql.Marshaler {
|
|
|
+ return ec._User(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNUser2ᚕᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.User) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalNUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.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")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._User(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
|
|
|
+ return ec.___Directive(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
|
|
|
+ res, err := graphql.UnmarshalString(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
|
+ _ = 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")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
|
+ var vSlice []any
|
|
|
+ vSlice = graphql.CoerceList(v)
|
|
|
+ var err error
|
|
|
+ res := make([]string, len(vSlice))
|
|
|
+ for i := range vSlice {
|
|
|
+ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
|
+ res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
|
|
|
+ return ec.___EnumValue(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
|
|
|
+ return ec.___Field(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
|
|
|
+ return ec.___InputValue(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
|
|
|
+ return ec.___Type(ctx, sel, &v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
|
+ graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
|
+ }
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec.___Type(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
|
|
|
+ res, err := graphql.UnmarshalString(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
|
+ _ = 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")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
|
+ res, err := graphql.UnmarshalBoolean(v)
|
|
|
+ return res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
|
+ _ = sel
|
|
|
+ _ = ctx
|
|
|
+ res := graphql.MarshalBoolean(v)
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
|
|
|
+ if v == nil {
|
|
|
+ return nil, nil
|
|
|
+ }
|
|
|
+ res, err := graphql.UnmarshalBoolean(v)
|
|
|
+ return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ _ = sel
|
|
|
+ _ = ctx
|
|
|
+ res := graphql.MarshalBoolean(*v)
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOChannel2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐChannel(ctx context.Context, sel ast.SelectionSet, v *model.Channel) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Channel(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v any) (*string, error) {
|
|
|
+ if v == nil {
|
|
|
+ return nil, nil
|
|
|
+ }
|
|
|
+ res, err := graphql.UnmarshalID(v)
|
|
|
+ return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ _ = sel
|
|
|
+ _ = ctx
|
|
|
+ res := graphql.MarshalID(*v)
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOMessage2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐMessage(ctx context.Context, sel ast.SelectionSet, v *model.Message) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Message(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalONote2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐNote(ctx context.Context, sel ast.SelectionSet, v *model.Note) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Note(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOPermission2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐPermission(ctx context.Context, sel ast.SelectionSet, v *model.Permission) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Permission(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalORole2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐRole(ctx context.Context, sel ast.SelectionSet, v *model.Role) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Role(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOService2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v *model.Service) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Service(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
|
|
|
+ if v == nil {
|
|
|
+ return nil, nil
|
|
|
+ }
|
|
|
+ res, err := graphql.UnmarshalString(v)
|
|
|
+ return &res, graphql.ErrorOnPath(ctx, err)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ _ = sel
|
|
|
+ _ = ctx
|
|
|
+ res := graphql.MarshalString(*v)
|
|
|
+ return res
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOTask2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTask(ctx context.Context, sel ast.SelectionSet, v *model.Task) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._Task(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOTaskStatus2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐTaskStatus(ctx context.Context, sel ast.SelectionSet, v *model.TaskStatus) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._TaskStatus(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalOUser2ᚖgogsᚗdmscᚗdevᚋarpᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec._User(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec.___Schema(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
|
+ fc := graphql.GetFieldContext(ctx)
|
|
|
+ fc.Result = &v[i]
|
|
|
+ return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
|
+ })
|
|
|
+
|
|
|
+ for _, e := range ret {
|
|
|
+ if e == graphql.Null {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret
|
|
|
+}
|
|
|
+
|
|
|
+func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
|
+ if v == nil {
|
|
|
+ return graphql.Null
|
|
|
+ }
|
|
|
+ return ec.___Type(ctx, sel, v)
|
|
|
+}
|
|
|
+
|
|
|
+// endregion ***************************** type.gotpl *****************************
|