From c037b79f105f9af46341124dab3d079f31967518 Mon Sep 17 00:00:00 2001 From: KCarretto Date: Fri, 19 Jan 2024 19:02:21 +0000 Subject: [PATCH 1/2] added hook to track task output size --- tavern/internal/ent/client.go | 3 +- tavern/internal/ent/gql_collection.go | 5 + tavern/internal/ent/gql_node.go | 2 +- tavern/internal/ent/gql_pagination.go | 20 +- tavern/internal/ent/gql_where_input.go | 34 ++ tavern/internal/ent/migrate/schema.go | 5 +- tavern/internal/ent/mutation.go | 94 ++- tavern/internal/ent/runtime/runtime.go | 8 + tavern/internal/ent/schema/task.go | 44 ++ tavern/internal/ent/task.go | 13 +- tavern/internal/ent/task/task.go | 19 + tavern/internal/ent/task/where.go | 45 ++ tavern/internal/ent/task_create.go | 103 +++- tavern/internal/ent/task_update.go | 84 ++- .../graphql/generated/directives.generated.go | 8 +- .../graphql/generated/ent.generated.go | 571 +++++++++++------- .../graphql/generated/inputs.generated.go | 6 +- .../graphql/generated/mutation.generated.go | 56 +- .../graphql/generated/root_.generated.go | 24 +- tavern/internal/graphql/schema.graphql | 12 + tavern/internal/graphql/schema/ent.graphql | 12 + tavern/internal/www/schema.graphql | 12 + 22 files changed, 909 insertions(+), 271 deletions(-) diff --git a/tavern/internal/ent/client.go b/tavern/internal/ent/client.go index c677b4fd5..88ef3dc98 100644 --- a/tavern/internal/ent/client.go +++ b/tavern/internal/ent/client.go @@ -1210,7 +1210,8 @@ func (c *TaskClient) QueryBeacon(t *Task) *BeaconQuery { // Hooks returns the client hooks. func (c *TaskClient) Hooks() []Hook { - return c.hooks.Task + hooks := c.hooks.Task + return append(hooks[:len(hooks):len(hooks)], task.Hooks[:]...) } // Interceptors returns the client interceptors. diff --git a/tavern/internal/ent/gql_collection.go b/tavern/internal/ent/gql_collection.go index 45c288914..6edfff931 100644 --- a/tavern/internal/ent/gql_collection.go +++ b/tavern/internal/ent/gql_collection.go @@ -719,6 +719,11 @@ func (t *TaskQuery) collectField(ctx context.Context, opCtx *graphql.OperationCo selectedFields = append(selectedFields, task.FieldOutput) fieldSeen[task.FieldOutput] = struct{}{} } + case "outputSize": + if _, ok := fieldSeen[task.FieldOutputSize]; !ok { + selectedFields = append(selectedFields, task.FieldOutputSize) + fieldSeen[task.FieldOutputSize] = struct{}{} + } case "error": if _, ok := fieldSeen[task.FieldError]; !ok { selectedFields = append(selectedFields, task.FieldError) diff --git a/tavern/internal/ent/gql_node.go b/tavern/internal/ent/gql_node.go index 0a22d35a7..c2cf45176 100644 --- a/tavern/internal/ent/gql_node.go +++ b/tavern/internal/ent/gql_node.go @@ -14,6 +14,7 @@ import ( "entgo.io/ent/dialect/sql/schema" "github.com/99designs/gqlgen/graphql" "github.com/hashicorp/go-multierror" + "golang.org/x/sync/semaphore" "realm.pub/tavern/internal/ent/beacon" "realm.pub/tavern/internal/ent/file" "realm.pub/tavern/internal/ent/host" @@ -22,7 +23,6 @@ import ( "realm.pub/tavern/internal/ent/task" "realm.pub/tavern/internal/ent/tome" "realm.pub/tavern/internal/ent/user" - "golang.org/x/sync/semaphore" ) // Noder wraps the basic Node method. diff --git a/tavern/internal/ent/gql_pagination.go b/tavern/internal/ent/gql_pagination.go index 34fce29f3..b630c8ee4 100644 --- a/tavern/internal/ent/gql_pagination.go +++ b/tavern/internal/ent/gql_pagination.go @@ -14,6 +14,7 @@ import ( "entgo.io/ent/dialect/sql" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/errcode" + "github.com/vektah/gqlparser/v2/gqlerror" "realm.pub/tavern/internal/ent/beacon" "realm.pub/tavern/internal/ent/file" "realm.pub/tavern/internal/ent/host" @@ -22,7 +23,6 @@ import ( "realm.pub/tavern/internal/ent/task" "realm.pub/tavern/internal/ent/tome" "realm.pub/tavern/internal/ent/user" - "github.com/vektah/gqlparser/v2/gqlerror" ) // Common entgql types. @@ -1990,6 +1990,20 @@ var ( } }, } + // TaskOrderFieldOutputSize orders Task by output_size. + TaskOrderFieldOutputSize = &TaskOrderField{ + Value: func(t *Task) (ent.Value, error) { + return t.OutputSize, nil + }, + column: task.FieldOutputSize, + toTerm: task.ByOutputSize, + toCursor: func(t *Task) Cursor { + return Cursor{ + ID: t.ID, + Value: t.OutputSize, + } + }, + } ) // String implement fmt.Stringer interface. @@ -2006,6 +2020,8 @@ func (f TaskOrderField) String() string { str = "EXEC_STARTED_AT" case TaskOrderFieldExecFinishedAt.column: str = "EXEC_FINISHED_AT" + case TaskOrderFieldOutputSize.column: + str = "SIZE" } return str } @@ -2032,6 +2048,8 @@ func (f *TaskOrderField) UnmarshalGQL(v interface{}) error { *f = *TaskOrderFieldExecStartedAt case "EXEC_FINISHED_AT": *f = *TaskOrderFieldExecFinishedAt + case "SIZE": + *f = *TaskOrderFieldOutputSize default: return fmt.Errorf("%s is not a valid TaskOrderField", str) } diff --git a/tavern/internal/ent/gql_where_input.go b/tavern/internal/ent/gql_where_input.go index 7dae62cbf..35f291807 100644 --- a/tavern/internal/ent/gql_where_input.go +++ b/tavern/internal/ent/gql_where_input.go @@ -1946,6 +1946,16 @@ type TaskWhereInput struct { OutputEqualFold *string `json:"outputEqualFold,omitempty"` OutputContainsFold *string `json:"outputContainsFold,omitempty"` + // "output_size" field predicates. + OutputSize *int `json:"outputSize,omitempty"` + OutputSizeNEQ *int `json:"outputSizeNEQ,omitempty"` + OutputSizeIn []int `json:"outputSizeIn,omitempty"` + OutputSizeNotIn []int `json:"outputSizeNotIn,omitempty"` + OutputSizeGT *int `json:"outputSizeGT,omitempty"` + OutputSizeGTE *int `json:"outputSizeGTE,omitempty"` + OutputSizeLT *int `json:"outputSizeLT,omitempty"` + OutputSizeLTE *int `json:"outputSizeLTE,omitempty"` + // "error" field predicates. Error *string `json:"error,omitempty"` ErrorNEQ *string `json:"errorNEQ,omitempty"` @@ -2250,6 +2260,30 @@ func (i *TaskWhereInput) P() (predicate.Task, error) { if i.OutputContainsFold != nil { predicates = append(predicates, task.OutputContainsFold(*i.OutputContainsFold)) } + if i.OutputSize != nil { + predicates = append(predicates, task.OutputSizeEQ(*i.OutputSize)) + } + if i.OutputSizeNEQ != nil { + predicates = append(predicates, task.OutputSizeNEQ(*i.OutputSizeNEQ)) + } + if len(i.OutputSizeIn) > 0 { + predicates = append(predicates, task.OutputSizeIn(i.OutputSizeIn...)) + } + if len(i.OutputSizeNotIn) > 0 { + predicates = append(predicates, task.OutputSizeNotIn(i.OutputSizeNotIn...)) + } + if i.OutputSizeGT != nil { + predicates = append(predicates, task.OutputSizeGT(*i.OutputSizeGT)) + } + if i.OutputSizeGTE != nil { + predicates = append(predicates, task.OutputSizeGTE(*i.OutputSizeGTE)) + } + if i.OutputSizeLT != nil { + predicates = append(predicates, task.OutputSizeLT(*i.OutputSizeLT)) + } + if i.OutputSizeLTE != nil { + predicates = append(predicates, task.OutputSizeLTE(*i.OutputSizeLTE)) + } if i.Error != nil { predicates = append(predicates, task.ErrorEQ(*i.Error)) } diff --git a/tavern/internal/ent/migrate/schema.go b/tavern/internal/ent/migrate/schema.go index e25ce06f7..dbe7d4e38 100644 --- a/tavern/internal/ent/migrate/schema.go +++ b/tavern/internal/ent/migrate/schema.go @@ -131,6 +131,7 @@ var ( {Name: "exec_started_at", Type: field.TypeTime, Nullable: true}, {Name: "exec_finished_at", Type: field.TypeTime, Nullable: true}, {Name: "output", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "output_size", Type: field.TypeInt, Default: 0}, {Name: "error", Type: field.TypeString, Nullable: true}, {Name: "quest_tasks", Type: field.TypeInt}, {Name: "task_beacon", Type: field.TypeInt}, @@ -143,13 +144,13 @@ var ( ForeignKeys: []*schema.ForeignKey{ { Symbol: "tasks_quests_tasks", - Columns: []*schema.Column{TasksColumns[8]}, + Columns: []*schema.Column{TasksColumns[9]}, RefColumns: []*schema.Column{QuestsColumns[0]}, OnDelete: schema.NoAction, }, { Symbol: "tasks_beacons_beacon", - Columns: []*schema.Column{TasksColumns[9]}, + Columns: []*schema.Column{TasksColumns[10]}, RefColumns: []*schema.Column{BeaconsColumns[0]}, OnDelete: schema.NoAction, }, diff --git a/tavern/internal/ent/mutation.go b/tavern/internal/ent/mutation.go index 645c175f6..6ddbfa74e 100644 --- a/tavern/internal/ent/mutation.go +++ b/tavern/internal/ent/mutation.go @@ -3580,6 +3580,8 @@ type TaskMutation struct { exec_started_at *time.Time exec_finished_at *time.Time output *string + output_size *int + addoutput_size *int error *string clearedFields map[string]struct{} quest *int @@ -3957,6 +3959,62 @@ func (m *TaskMutation) ResetOutput() { delete(m.clearedFields, task.FieldOutput) } +// SetOutputSize sets the "output_size" field. +func (m *TaskMutation) SetOutputSize(i int) { + m.output_size = &i + m.addoutput_size = nil +} + +// OutputSize returns the value of the "output_size" field in the mutation. +func (m *TaskMutation) OutputSize() (r int, exists bool) { + v := m.output_size + if v == nil { + return + } + return *v, true +} + +// OldOutputSize returns the old "output_size" field's value of the Task entity. +// If the Task object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *TaskMutation) OldOutputSize(ctx context.Context) (v int, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOutputSize is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOutputSize requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOutputSize: %w", err) + } + return oldValue.OutputSize, nil +} + +// AddOutputSize adds i to the "output_size" field. +func (m *TaskMutation) AddOutputSize(i int) { + if m.addoutput_size != nil { + *m.addoutput_size += i + } else { + m.addoutput_size = &i + } +} + +// AddedOutputSize returns the value that was added to the "output_size" field in this mutation. +func (m *TaskMutation) AddedOutputSize() (r int, exists bool) { + v := m.addoutput_size + if v == nil { + return + } + return *v, true +} + +// ResetOutputSize resets all changes to the "output_size" field. +func (m *TaskMutation) ResetOutputSize() { + m.output_size = nil + m.addoutput_size = nil +} + // SetError sets the "error" field. func (m *TaskMutation) SetError(s string) { m.error = &s @@ -4118,7 +4176,7 @@ func (m *TaskMutation) Type() string { // order to get all numeric fields that were incremented/decremented, call // AddedFields(). func (m *TaskMutation) Fields() []string { - fields := make([]string, 0, 7) + fields := make([]string, 0, 8) if m.created_at != nil { fields = append(fields, task.FieldCreatedAt) } @@ -4137,6 +4195,9 @@ func (m *TaskMutation) Fields() []string { if m.output != nil { fields = append(fields, task.FieldOutput) } + if m.output_size != nil { + fields = append(fields, task.FieldOutputSize) + } if m.error != nil { fields = append(fields, task.FieldError) } @@ -4160,6 +4221,8 @@ func (m *TaskMutation) Field(name string) (ent.Value, bool) { return m.ExecFinishedAt() case task.FieldOutput: return m.Output() + case task.FieldOutputSize: + return m.OutputSize() case task.FieldError: return m.Error() } @@ -4183,6 +4246,8 @@ func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, er return m.OldExecFinishedAt(ctx) case task.FieldOutput: return m.OldOutput(ctx) + case task.FieldOutputSize: + return m.OldOutputSize(ctx) case task.FieldError: return m.OldError(ctx) } @@ -4236,6 +4301,13 @@ func (m *TaskMutation) SetField(name string, value ent.Value) error { } m.SetOutput(v) return nil + case task.FieldOutputSize: + v, ok := value.(int) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOutputSize(v) + return nil case task.FieldError: v, ok := value.(string) if !ok { @@ -4250,13 +4322,21 @@ func (m *TaskMutation) SetField(name string, value ent.Value) error { // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. func (m *TaskMutation) AddedFields() []string { - return nil + var fields []string + if m.addoutput_size != nil { + fields = append(fields, task.FieldOutputSize) + } + return fields } // AddedField returns the numeric value that was incremented/decremented on a field // with the given name. The second boolean return value indicates that this field // was not set, or was not defined in the schema. func (m *TaskMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case task.FieldOutputSize: + return m.AddedOutputSize() + } return nil, false } @@ -4265,6 +4345,13 @@ func (m *TaskMutation) AddedField(name string) (ent.Value, bool) { // type. func (m *TaskMutation) AddField(name string, value ent.Value) error { switch name { + case task.FieldOutputSize: + v, ok := value.(int) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddOutputSize(v) + return nil } return fmt.Errorf("unknown Task numeric field %s", name) } @@ -4343,6 +4430,9 @@ func (m *TaskMutation) ResetField(name string) error { case task.FieldOutput: m.ResetOutput() return nil + case task.FieldOutputSize: + m.ResetOutputSize() + return nil case task.FieldError: m.ResetError() return nil diff --git a/tavern/internal/ent/runtime/runtime.go b/tavern/internal/ent/runtime/runtime.go index 0ba78d73d..57804764e 100644 --- a/tavern/internal/ent/runtime/runtime.go +++ b/tavern/internal/ent/runtime/runtime.go @@ -109,6 +109,8 @@ func init() { // tag.NameValidator is a validator for the "name" field. It is called by the builders before save. tag.NameValidator = tagDescName.Validators[0].(func(string) error) taskMixin := schema.Task{}.Mixin() + taskHooks := schema.Task{}.Hooks() + task.Hooks[0] = taskHooks[0] taskMixinFields0 := taskMixin[0].Fields() _ = taskMixinFields0 taskFields := schema.Task{}.Fields() @@ -123,6 +125,12 @@ func init() { task.DefaultLastModifiedAt = taskDescLastModifiedAt.Default.(func() time.Time) // task.UpdateDefaultLastModifiedAt holds the default value on update for the last_modified_at field. task.UpdateDefaultLastModifiedAt = taskDescLastModifiedAt.UpdateDefault.(func() time.Time) + // taskDescOutputSize is the schema descriptor for output_size field. + taskDescOutputSize := taskFields[4].Descriptor() + // task.DefaultOutputSize holds the default value on creation for the output_size field. + task.DefaultOutputSize = taskDescOutputSize.Default.(int) + // task.OutputSizeValidator is a validator for the "output_size" field. It is called by the builders before save. + task.OutputSizeValidator = taskDescOutputSize.Validators[0].(func(int) error) tomeMixin := schema.Tome{}.Mixin() tomeHooks := schema.Tome{}.Hooks() tome.Hooks[0] = tomeHooks[0] diff --git a/tavern/internal/ent/schema/task.go b/tavern/internal/ent/schema/task.go index 5ff1c47c9..79dfa7167 100644 --- a/tavern/internal/ent/schema/task.go +++ b/tavern/internal/ent/schema/task.go @@ -1,11 +1,15 @@ package schema import ( + "context" + "fmt" + "entgo.io/contrib/entgql" "entgo.io/ent" "entgo.io/ent/schema" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" + "realm.pub/tavern/internal/ent/hook" ) // Task holds the schema definition for the Task entity. @@ -37,6 +41,13 @@ func (Task) Fields() []ent.Field { field.Text("output"). Optional(). Comment("Output from executing the task"), + field.Int("output_size"). + Default(0). + Min(0). + Annotations( + entgql.OrderField("SIZE"), + ). + Comment("The size of the output in bytes"), field.String("error"). Optional(). Comment("Error, if any, produced while executing the Task"), @@ -70,3 +81,36 @@ func (Task) Mixin() []ent.Mixin { MixinHistory{}, // created_at, last_modified_at } } + +// Hooks defines middleware for mutations for the ent. +func (Task) Hooks() []ent.Hook { + return []ent.Hook{ + hook.On(HookDeriveTaskInfo(), ent.OpCreate|ent.OpUpdate|ent.OpUpdateOne), + } +} + +// HookDeriveTaskInfo will update task info (e.g. output_size) whenever it is mutated. +func HookDeriveTaskInfo() ent.Hook { + // Get the relevant methods from the Task Mutation + // See this example: https://github.com/ent/ent/blob/master/entc/integration/hooks/ent/schema/user.go#L98 + type tMutation interface { + Output() (string, bool) + SetOutputSize(i int) + } + + return func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + // Get the mutation + t, ok := m.(tMutation) + if !ok { + return nil, fmt.Errorf("expected task mutation in schema hook, got: %+v", m) + } + + // Set the new size + output, _ := t.Output() + t.SetOutputSize(len([]byte(output))) + + return next.Mutate(ctx, m) + }) + } +} diff --git a/tavern/internal/ent/task.go b/tavern/internal/ent/task.go index cfa1d82a5..b00f701bb 100644 --- a/tavern/internal/ent/task.go +++ b/tavern/internal/ent/task.go @@ -31,6 +31,8 @@ type Task struct { ExecFinishedAt time.Time `json:"exec_finished_at,omitempty"` // Output from executing the task Output string `json:"output,omitempty"` + // The size of the output in bytes + OutputSize int `json:"output_size,omitempty"` // Error, if any, produced while executing the Task Error string `json:"error,omitempty"` // Edges holds the relations/edges for other nodes in the graph. @@ -85,7 +87,7 @@ func (*Task) scanValues(columns []string) ([]any, error) { values := make([]any, len(columns)) for i := range columns { switch columns[i] { - case task.FieldID: + case task.FieldID, task.FieldOutputSize: values[i] = new(sql.NullInt64) case task.FieldOutput, task.FieldError: values[i] = new(sql.NullString) @@ -152,6 +154,12 @@ func (t *Task) assignValues(columns []string, values []any) error { } else if value.Valid { t.Output = value.String } + case task.FieldOutputSize: + if value, ok := values[i].(*sql.NullInt64); !ok { + return fmt.Errorf("unexpected type %T for field output_size", values[i]) + } else if value.Valid { + t.OutputSize = int(value.Int64) + } case task.FieldError: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field error", values[i]) @@ -236,6 +244,9 @@ func (t *Task) String() string { builder.WriteString("output=") builder.WriteString(t.Output) builder.WriteString(", ") + builder.WriteString("output_size=") + builder.WriteString(fmt.Sprintf("%v", t.OutputSize)) + builder.WriteString(", ") builder.WriteString("error=") builder.WriteString(t.Error) builder.WriteByte(')') diff --git a/tavern/internal/ent/task/task.go b/tavern/internal/ent/task/task.go index 763b15da5..b03cf5e6c 100644 --- a/tavern/internal/ent/task/task.go +++ b/tavern/internal/ent/task/task.go @@ -5,6 +5,7 @@ package task import ( "time" + "entgo.io/ent" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" ) @@ -26,6 +27,8 @@ const ( FieldExecFinishedAt = "exec_finished_at" // FieldOutput holds the string denoting the output field in the database. FieldOutput = "output" + // FieldOutputSize holds the string denoting the output_size field in the database. + FieldOutputSize = "output_size" // FieldError holds the string denoting the error field in the database. FieldError = "error" // EdgeQuest holds the string denoting the quest edge name in mutations. @@ -59,6 +62,7 @@ var Columns = []string{ FieldExecStartedAt, FieldExecFinishedAt, FieldOutput, + FieldOutputSize, FieldError, } @@ -84,13 +88,23 @@ func ValidColumn(column string) bool { return false } +// Note that the variables below are initialized by the runtime +// package on the initialization of the application. Therefore, +// it should be imported in the main as follows: +// +// import _ "realm.pub/tavern/internal/ent/runtime" var ( + Hooks [1]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time + // DefaultOutputSize holds the default value on creation for the "output_size" field. + DefaultOutputSize int + // OutputSizeValidator is a validator for the "output_size" field. It is called by the builders before save. + OutputSizeValidator func(int) error ) // OrderOption defines the ordering options for the Task queries. @@ -131,6 +145,11 @@ func ByOutput(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldOutput, opts...).ToFunc() } +// ByOutputSize orders the results by the output_size field. +func ByOutputSize(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOutputSize, opts...).ToFunc() +} + // ByError orders the results by the error field. func ByError(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldError, opts...).ToFunc() diff --git a/tavern/internal/ent/task/where.go b/tavern/internal/ent/task/where.go index 90f553b90..fa4aff0f3 100644 --- a/tavern/internal/ent/task/where.go +++ b/tavern/internal/ent/task/where.go @@ -85,6 +85,11 @@ func Output(v string) predicate.Task { return predicate.Task(sql.FieldEQ(FieldOutput, v)) } +// OutputSize applies equality check predicate on the "output_size" field. It's identical to OutputSizeEQ. +func OutputSize(v int) predicate.Task { + return predicate.Task(sql.FieldEQ(FieldOutputSize, v)) +} + // Error applies equality check predicate on the "error" field. It's identical to ErrorEQ. func Error(v string) predicate.Task { return predicate.Task(sql.FieldEQ(FieldError, v)) @@ -395,6 +400,46 @@ func OutputContainsFold(v string) predicate.Task { return predicate.Task(sql.FieldContainsFold(FieldOutput, v)) } +// OutputSizeEQ applies the EQ predicate on the "output_size" field. +func OutputSizeEQ(v int) predicate.Task { + return predicate.Task(sql.FieldEQ(FieldOutputSize, v)) +} + +// OutputSizeNEQ applies the NEQ predicate on the "output_size" field. +func OutputSizeNEQ(v int) predicate.Task { + return predicate.Task(sql.FieldNEQ(FieldOutputSize, v)) +} + +// OutputSizeIn applies the In predicate on the "output_size" field. +func OutputSizeIn(vs ...int) predicate.Task { + return predicate.Task(sql.FieldIn(FieldOutputSize, vs...)) +} + +// OutputSizeNotIn applies the NotIn predicate on the "output_size" field. +func OutputSizeNotIn(vs ...int) predicate.Task { + return predicate.Task(sql.FieldNotIn(FieldOutputSize, vs...)) +} + +// OutputSizeGT applies the GT predicate on the "output_size" field. +func OutputSizeGT(v int) predicate.Task { + return predicate.Task(sql.FieldGT(FieldOutputSize, v)) +} + +// OutputSizeGTE applies the GTE predicate on the "output_size" field. +func OutputSizeGTE(v int) predicate.Task { + return predicate.Task(sql.FieldGTE(FieldOutputSize, v)) +} + +// OutputSizeLT applies the LT predicate on the "output_size" field. +func OutputSizeLT(v int) predicate.Task { + return predicate.Task(sql.FieldLT(FieldOutputSize, v)) +} + +// OutputSizeLTE applies the LTE predicate on the "output_size" field. +func OutputSizeLTE(v int) predicate.Task { + return predicate.Task(sql.FieldLTE(FieldOutputSize, v)) +} + // ErrorEQ applies the EQ predicate on the "error" field. func ErrorEQ(v string) predicate.Task { return predicate.Task(sql.FieldEQ(FieldError, v)) diff --git a/tavern/internal/ent/task_create.go b/tavern/internal/ent/task_create.go index 4ded8f0a1..1b7c7d816 100644 --- a/tavern/internal/ent/task_create.go +++ b/tavern/internal/ent/task_create.go @@ -108,6 +108,20 @@ func (tc *TaskCreate) SetNillableOutput(s *string) *TaskCreate { return tc } +// SetOutputSize sets the "output_size" field. +func (tc *TaskCreate) SetOutputSize(i int) *TaskCreate { + tc.mutation.SetOutputSize(i) + return tc +} + +// SetNillableOutputSize sets the "output_size" field if the given value is not nil. +func (tc *TaskCreate) SetNillableOutputSize(i *int) *TaskCreate { + if i != nil { + tc.SetOutputSize(*i) + } + return tc +} + // SetError sets the "error" field. func (tc *TaskCreate) SetError(s string) *TaskCreate { tc.mutation.SetError(s) @@ -151,7 +165,9 @@ func (tc *TaskCreate) Mutation() *TaskMutation { // Save creates the Task in the database. func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) { - tc.defaults() + if err := tc.defaults(); err != nil { + return nil, err + } return withHooks(ctx, tc.sqlSave, tc.mutation, tc.hooks) } @@ -178,15 +194,26 @@ func (tc *TaskCreate) ExecX(ctx context.Context) { } // defaults sets the default values of the builder before save. -func (tc *TaskCreate) defaults() { +func (tc *TaskCreate) defaults() error { if _, ok := tc.mutation.CreatedAt(); !ok { + if task.DefaultCreatedAt == nil { + return fmt.Errorf("ent: uninitialized task.DefaultCreatedAt (forgotten import ent/runtime?)") + } v := task.DefaultCreatedAt() tc.mutation.SetCreatedAt(v) } if _, ok := tc.mutation.LastModifiedAt(); !ok { + if task.DefaultLastModifiedAt == nil { + return fmt.Errorf("ent: uninitialized task.DefaultLastModifiedAt (forgotten import ent/runtime?)") + } v := task.DefaultLastModifiedAt() tc.mutation.SetLastModifiedAt(v) } + if _, ok := tc.mutation.OutputSize(); !ok { + v := task.DefaultOutputSize + tc.mutation.SetOutputSize(v) + } + return nil } // check runs all checks and user-defined validators on the builder. @@ -197,6 +224,14 @@ func (tc *TaskCreate) check() error { if _, ok := tc.mutation.LastModifiedAt(); !ok { return &ValidationError{Name: "last_modified_at", err: errors.New(`ent: missing required field "Task.last_modified_at"`)} } + if _, ok := tc.mutation.OutputSize(); !ok { + return &ValidationError{Name: "output_size", err: errors.New(`ent: missing required field "Task.output_size"`)} + } + if v, ok := tc.mutation.OutputSize(); ok { + if err := task.OutputSizeValidator(v); err != nil { + return &ValidationError{Name: "output_size", err: fmt.Errorf(`ent: validator failed for field "Task.output_size": %w`, err)} + } + } if _, ok := tc.mutation.QuestID(); !ok { return &ValidationError{Name: "quest", err: errors.New(`ent: missing required edge "Task.quest"`)} } @@ -254,6 +289,10 @@ func (tc *TaskCreate) createSpec() (*Task, *sqlgraph.CreateSpec) { _spec.SetField(task.FieldOutput, field.TypeString, value) _node.Output = value } + if value, ok := tc.mutation.OutputSize(); ok { + _spec.SetField(task.FieldOutputSize, field.TypeInt, value) + _node.OutputSize = value + } if value, ok := tc.mutation.Error(); ok { _spec.SetField(task.FieldError, field.TypeString, value) _node.Error = value @@ -428,6 +467,24 @@ func (u *TaskUpsert) ClearOutput() *TaskUpsert { return u } +// SetOutputSize sets the "output_size" field. +func (u *TaskUpsert) SetOutputSize(v int) *TaskUpsert { + u.Set(task.FieldOutputSize, v) + return u +} + +// UpdateOutputSize sets the "output_size" field to the value that was provided on create. +func (u *TaskUpsert) UpdateOutputSize() *TaskUpsert { + u.SetExcluded(task.FieldOutputSize) + return u +} + +// AddOutputSize adds v to the "output_size" field. +func (u *TaskUpsert) AddOutputSize(v int) *TaskUpsert { + u.Add(task.FieldOutputSize, v) + return u +} + // SetError sets the "error" field. func (u *TaskUpsert) SetError(v string) *TaskUpsert { u.Set(task.FieldError, v) @@ -589,6 +646,27 @@ func (u *TaskUpsertOne) ClearOutput() *TaskUpsertOne { }) } +// SetOutputSize sets the "output_size" field. +func (u *TaskUpsertOne) SetOutputSize(v int) *TaskUpsertOne { + return u.Update(func(s *TaskUpsert) { + s.SetOutputSize(v) + }) +} + +// AddOutputSize adds v to the "output_size" field. +func (u *TaskUpsertOne) AddOutputSize(v int) *TaskUpsertOne { + return u.Update(func(s *TaskUpsert) { + s.AddOutputSize(v) + }) +} + +// UpdateOutputSize sets the "output_size" field to the value that was provided on create. +func (u *TaskUpsertOne) UpdateOutputSize() *TaskUpsertOne { + return u.Update(func(s *TaskUpsert) { + s.UpdateOutputSize() + }) +} + // SetError sets the "error" field. func (u *TaskUpsertOne) SetError(v string) *TaskUpsertOne { return u.Update(func(s *TaskUpsert) { @@ -919,6 +997,27 @@ func (u *TaskUpsertBulk) ClearOutput() *TaskUpsertBulk { }) } +// SetOutputSize sets the "output_size" field. +func (u *TaskUpsertBulk) SetOutputSize(v int) *TaskUpsertBulk { + return u.Update(func(s *TaskUpsert) { + s.SetOutputSize(v) + }) +} + +// AddOutputSize adds v to the "output_size" field. +func (u *TaskUpsertBulk) AddOutputSize(v int) *TaskUpsertBulk { + return u.Update(func(s *TaskUpsert) { + s.AddOutputSize(v) + }) +} + +// UpdateOutputSize sets the "output_size" field to the value that was provided on create. +func (u *TaskUpsertBulk) UpdateOutputSize() *TaskUpsertBulk { + return u.Update(func(s *TaskUpsert) { + s.UpdateOutputSize() + }) +} + // SetError sets the "error" field. func (u *TaskUpsertBulk) SetError(v string) *TaskUpsertBulk { return u.Update(func(s *TaskUpsert) { diff --git a/tavern/internal/ent/task_update.go b/tavern/internal/ent/task_update.go index 1e14a052a..7e3bd5ac7 100644 --- a/tavern/internal/ent/task_update.go +++ b/tavern/internal/ent/task_update.go @@ -116,6 +116,27 @@ func (tu *TaskUpdate) ClearOutput() *TaskUpdate { return tu } +// SetOutputSize sets the "output_size" field. +func (tu *TaskUpdate) SetOutputSize(i int) *TaskUpdate { + tu.mutation.ResetOutputSize() + tu.mutation.SetOutputSize(i) + return tu +} + +// SetNillableOutputSize sets the "output_size" field if the given value is not nil. +func (tu *TaskUpdate) SetNillableOutputSize(i *int) *TaskUpdate { + if i != nil { + tu.SetOutputSize(*i) + } + return tu +} + +// AddOutputSize adds i to the "output_size" field. +func (tu *TaskUpdate) AddOutputSize(i int) *TaskUpdate { + tu.mutation.AddOutputSize(i) + return tu +} + // SetError sets the "error" field. func (tu *TaskUpdate) SetError(s string) *TaskUpdate { tu.mutation.SetError(s) @@ -177,7 +198,9 @@ func (tu *TaskUpdate) ClearBeacon() *TaskUpdate { // Save executes the query and returns the number of nodes affected by the update operation. func (tu *TaskUpdate) Save(ctx context.Context) (int, error) { - tu.defaults() + if err := tu.defaults(); err != nil { + return 0, err + } return withHooks(ctx, tu.sqlSave, tu.mutation, tu.hooks) } @@ -204,15 +227,24 @@ func (tu *TaskUpdate) ExecX(ctx context.Context) { } // defaults sets the default values of the builder before save. -func (tu *TaskUpdate) defaults() { +func (tu *TaskUpdate) defaults() error { if _, ok := tu.mutation.LastModifiedAt(); !ok { + if task.UpdateDefaultLastModifiedAt == nil { + return fmt.Errorf("ent: uninitialized task.UpdateDefaultLastModifiedAt (forgotten import ent/runtime?)") + } v := task.UpdateDefaultLastModifiedAt() tu.mutation.SetLastModifiedAt(v) } + return nil } // check runs all checks and user-defined validators on the builder. func (tu *TaskUpdate) check() error { + if v, ok := tu.mutation.OutputSize(); ok { + if err := task.OutputSizeValidator(v); err != nil { + return &ValidationError{Name: "output_size", err: fmt.Errorf(`ent: validator failed for field "Task.output_size": %w`, err)} + } + } if _, ok := tu.mutation.QuestID(); tu.mutation.QuestCleared() && !ok { return errors.New(`ent: clearing a required unique edge "Task.quest"`) } @@ -261,6 +293,12 @@ func (tu *TaskUpdate) sqlSave(ctx context.Context) (n int, err error) { if tu.mutation.OutputCleared() { _spec.ClearField(task.FieldOutput, field.TypeString) } + if value, ok := tu.mutation.OutputSize(); ok { + _spec.SetField(task.FieldOutputSize, field.TypeInt, value) + } + if value, ok := tu.mutation.AddedOutputSize(); ok { + _spec.AddField(task.FieldOutputSize, field.TypeInt, value) + } if value, ok := tu.mutation.Error(); ok { _spec.SetField(task.FieldError, field.TypeString, value) } @@ -431,6 +469,27 @@ func (tuo *TaskUpdateOne) ClearOutput() *TaskUpdateOne { return tuo } +// SetOutputSize sets the "output_size" field. +func (tuo *TaskUpdateOne) SetOutputSize(i int) *TaskUpdateOne { + tuo.mutation.ResetOutputSize() + tuo.mutation.SetOutputSize(i) + return tuo +} + +// SetNillableOutputSize sets the "output_size" field if the given value is not nil. +func (tuo *TaskUpdateOne) SetNillableOutputSize(i *int) *TaskUpdateOne { + if i != nil { + tuo.SetOutputSize(*i) + } + return tuo +} + +// AddOutputSize adds i to the "output_size" field. +func (tuo *TaskUpdateOne) AddOutputSize(i int) *TaskUpdateOne { + tuo.mutation.AddOutputSize(i) + return tuo +} + // SetError sets the "error" field. func (tuo *TaskUpdateOne) SetError(s string) *TaskUpdateOne { tuo.mutation.SetError(s) @@ -505,7 +564,9 @@ func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne // Save executes the query and returns the updated Task entity. func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error) { - tuo.defaults() + if err := tuo.defaults(); err != nil { + return nil, err + } return withHooks(ctx, tuo.sqlSave, tuo.mutation, tuo.hooks) } @@ -532,15 +593,24 @@ func (tuo *TaskUpdateOne) ExecX(ctx context.Context) { } // defaults sets the default values of the builder before save. -func (tuo *TaskUpdateOne) defaults() { +func (tuo *TaskUpdateOne) defaults() error { if _, ok := tuo.mutation.LastModifiedAt(); !ok { + if task.UpdateDefaultLastModifiedAt == nil { + return fmt.Errorf("ent: uninitialized task.UpdateDefaultLastModifiedAt (forgotten import ent/runtime?)") + } v := task.UpdateDefaultLastModifiedAt() tuo.mutation.SetLastModifiedAt(v) } + return nil } // check runs all checks and user-defined validators on the builder. func (tuo *TaskUpdateOne) check() error { + if v, ok := tuo.mutation.OutputSize(); ok { + if err := task.OutputSizeValidator(v); err != nil { + return &ValidationError{Name: "output_size", err: fmt.Errorf(`ent: validator failed for field "Task.output_size": %w`, err)} + } + } if _, ok := tuo.mutation.QuestID(); tuo.mutation.QuestCleared() && !ok { return errors.New(`ent: clearing a required unique edge "Task.quest"`) } @@ -606,6 +676,12 @@ func (tuo *TaskUpdateOne) sqlSave(ctx context.Context) (_node *Task, err error) if tuo.mutation.OutputCleared() { _spec.ClearField(task.FieldOutput, field.TypeString) } + if value, ok := tuo.mutation.OutputSize(); ok { + _spec.SetField(task.FieldOutputSize, field.TypeInt, value) + } + if value, ok := tuo.mutation.AddedOutputSize(); ok { + _spec.AddField(task.FieldOutputSize, field.TypeInt, value) + } if value, ok := tuo.mutation.Error(); ok { _spec.SetField(task.FieldError, field.TypeString, value) } diff --git a/tavern/internal/graphql/generated/directives.generated.go b/tavern/internal/graphql/generated/directives.generated.go index fdfb0f36b..fd91b2e3e 100644 --- a/tavern/internal/graphql/generated/directives.generated.go +++ b/tavern/internal/graphql/generated/directives.generated.go @@ -6,8 +6,8 @@ import ( "context" "github.com/99designs/gqlgen/graphql" - "realm.pub/tavern/internal/graphql/models" "github.com/vektah/gqlparser/v2/ast" + "realm.pub/tavern/internal/graphql/models" ) // region ************************** generated!.gotpl ************************** @@ -22,7 +22,7 @@ func (ec *executionContext) dir_requireRole_args(ctx context.Context, rawArgs ma var arg0 models.Role if tmp, ok := rawArgs["role"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - arg0, err = ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, tmp) + arg0, err = ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, tmp) if err != nil { return nil, err } @@ -55,13 +55,13 @@ func (ec *executionContext) dir_requireRole_args(ctx context.Context, rawArgs ma // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx context.Context, v interface{}) (models.Role, error) { +func (ec *executionContext) unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx context.Context, v interface{}) (models.Role, error) { var res models.Role err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx context.Context, sel ast.SelectionSet, v models.Role) graphql.Marshaler { +func (ec *executionContext) marshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx context.Context, sel ast.SelectionSet, v models.Role) graphql.Marshaler { return v } diff --git a/tavern/internal/graphql/generated/ent.generated.go b/tavern/internal/graphql/generated/ent.generated.go index a62ea1b00..5e86aa4bf 100644 --- a/tavern/internal/graphql/generated/ent.generated.go +++ b/tavern/internal/graphql/generated/ent.generated.go @@ -14,10 +14,10 @@ import ( "entgo.io/contrib/entgql" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/introspection" + "github.com/vektah/gqlparser/v2/ast" "realm.pub/tavern/internal/ent" "realm.pub/tavern/internal/ent/host" "realm.pub/tavern/internal/ent/tag" - "github.com/vektah/gqlparser/v2/ast" ) // region ************************** generated!.gotpl ************************** @@ -61,7 +61,7 @@ func (ec *executionContext) field_Query_beacons_args(ctx context.Context, rawArg var arg0 *ent.BeaconWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOBeaconWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOBeaconWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -76,7 +76,7 @@ func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs var arg0 *ent.FileWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOFileWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -91,7 +91,7 @@ func (ec *executionContext) field_Query_hosts_args(ctx context.Context, rawArgs var arg0 *ent.HostWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOHostWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOHostWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -136,7 +136,7 @@ func (ec *executionContext) field_Query_quests_args(ctx context.Context, rawArgs var arg0 *ent.QuestWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOQuestWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOQuestWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -151,7 +151,7 @@ func (ec *executionContext) field_Query_tags_args(ctx context.Context, rawArgs m var arg0 *ent.TagWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOTagWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOTagWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -202,7 +202,7 @@ func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs var arg4 []*ent.TaskOrder if tmp, ok := rawArgs["orderBy"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - arg4, err = ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrderᚄ(ctx, tmp) + arg4, err = ec.unmarshalOTaskOrder2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrderᚄ(ctx, tmp) if err != nil { return nil, err } @@ -211,7 +211,7 @@ func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs var arg5 *ent.TaskWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg5, err = ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, tmp) + arg5, err = ec.unmarshalOTaskWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -226,7 +226,7 @@ func (ec *executionContext) field_Query_tomes_args(ctx context.Context, rawArgs var arg0 *ent.TomeWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOTomeWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOTomeWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -241,7 +241,7 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs var arg0 *ent.UserWhereInput if tmp, ok := rawArgs["where"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, tmp) + arg0, err = ec.unmarshalOUserWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, tmp) if err != nil { return nil, err } @@ -582,7 +582,7 @@ func (ec *executionContext) _Beacon_host(ctx context.Context, field graphql.Coll } res := resTmp.(*ent.Host) fc.Result = res - return ec.marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx, field.Selections, res) + return ec.marshalNHost2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Beacon_host(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -641,7 +641,7 @@ func (ec *executionContext) _Beacon_tasks(ctx context.Context, field graphql.Col } res := resTmp.([]*ent.Task) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Beacon_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -666,6 +666,8 @@ func (ec *executionContext) fieldContext_Beacon_tasks(ctx context.Context, field return ec.fieldContext_Task_execFinishedAt(ctx, field) case "output": return ec.fieldContext_Task_output(ctx, field) + case "outputSize": + return ec.fieldContext_Task_outputSize(ctx, field) case "error": return ec.fieldContext_Task_error(ctx, field) case "quest": @@ -1141,7 +1143,7 @@ func (ec *executionContext) _Host_platform(ctx context.Context, field graphql.Co } res := resTmp.(host.Platform) fc.Result = res - return ec.marshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, field.Selections, res) + return ec.marshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Host_platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1223,7 +1225,7 @@ func (ec *executionContext) _Host_tags(ctx context.Context, field graphql.Collec } res := resTmp.([]*ent.Tag) fc.Result = res - return ec.marshalOTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagᚄ(ctx, field.Selections, res) + return ec.marshalOTag2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Host_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1274,7 +1276,7 @@ func (ec *executionContext) _Host_beacons(ctx context.Context, field graphql.Col } res := resTmp.([]*ent.Beacon) fc.Result = res - return ec.marshalOBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx, field.Selections, res) + return ec.marshalOBeacon2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Host_beacons(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1505,7 +1507,7 @@ func (ec *executionContext) _Query_node(ctx context.Context, field graphql.Colle } res := resTmp.(ent.Noder) fc.Result = res - return ec.marshalONode2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐNoder(ctx, field.Selections, res) + return ec.marshalONode2realmᚗpubᚋtavernᚋinternalᚋentᚐNoder(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1560,7 +1562,7 @@ func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.Coll } res := resTmp.([]ent.Noder) fc.Result = res - return ec.marshalNNode2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐNoder(ctx, field.Selections, res) + return ec.marshalNNode2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚐNoder(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1605,7 +1607,7 @@ func (ec *executionContext) _Query_files(ctx context.Context, field graphql.Coll return ec.resolvers.Query().Files(rctx, fc.Args["where"].(*ent.FileWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -1639,7 +1641,7 @@ func (ec *executionContext) _Query_files(ctx context.Context, field graphql.Coll } res := resTmp.([]*ent.File) fc.Result = res - return ec.marshalNFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNFile2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1698,7 +1700,7 @@ func (ec *executionContext) _Query_quests(ctx context.Context, field graphql.Col return ec.resolvers.Query().Quests(rctx, fc.Args["where"].(*ent.QuestWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -1732,7 +1734,7 @@ func (ec *executionContext) _Query_quests(ctx context.Context, field graphql.Col } res := resTmp.([]*ent.Quest) fc.Result = res - return ec.marshalNQuest2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestᚄ(ctx, field.Selections, res) + return ec.marshalNQuest2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_quests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1797,7 +1799,7 @@ func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.Coll return ec.resolvers.Query().Tasks(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TaskOrder), fc.Args["where"].(*ent.TaskWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -1831,7 +1833,7 @@ func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.Coll } res := resTmp.(*ent.TaskConnection) fc.Result = res - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskConnection(ctx, field.Selections, res) + return ec.marshalNTaskConnection2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskConnection(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1884,7 +1886,7 @@ func (ec *executionContext) _Query_beacons(ctx context.Context, field graphql.Co return ec.resolvers.Query().Beacons(rctx, fc.Args["where"].(*ent.BeaconWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -1918,7 +1920,7 @@ func (ec *executionContext) _Query_beacons(ctx context.Context, field graphql.Co } res := resTmp.([]*ent.Beacon) fc.Result = res - return ec.marshalNBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx, field.Selections, res) + return ec.marshalNBeacon2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_beacons(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -1983,7 +1985,7 @@ func (ec *executionContext) _Query_hosts(ctx context.Context, field graphql.Coll return ec.resolvers.Query().Hosts(rctx, fc.Args["where"].(*ent.HostWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -2017,7 +2019,7 @@ func (ec *executionContext) _Query_hosts(ctx context.Context, field graphql.Coll } res := resTmp.([]*ent.Host) fc.Result = res - return ec.marshalNHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostᚄ(ctx, field.Selections, res) + return ec.marshalNHost2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_hosts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2080,7 +2082,7 @@ func (ec *executionContext) _Query_tags(ctx context.Context, field graphql.Colle return ec.resolvers.Query().Tags(rctx, fc.Args["where"].(*ent.TagWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -2114,7 +2116,7 @@ func (ec *executionContext) _Query_tags(ctx context.Context, field graphql.Colle } res := resTmp.([]*ent.Tag) fc.Result = res - return ec.marshalNTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagᚄ(ctx, field.Selections, res) + return ec.marshalNTag2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2169,7 +2171,7 @@ func (ec *executionContext) _Query_tomes(ctx context.Context, field graphql.Coll return ec.resolvers.Query().Tomes(rctx, fc.Args["where"].(*ent.TomeWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -2203,7 +2205,7 @@ func (ec *executionContext) _Query_tomes(ctx context.Context, field graphql.Coll } res := resTmp.([]*ent.Tome) fc.Result = res - return ec.marshalNTome2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeᚄ(ctx, field.Selections, res) + return ec.marshalNTome2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_tomes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2266,7 +2268,7 @@ func (ec *executionContext) _Query_users(ctx context.Context, field graphql.Coll return ec.resolvers.Query().Users(rctx, fc.Args["where"].(*ent.UserWhereInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -2300,7 +2302,7 @@ func (ec *executionContext) _Query_users(ctx context.Context, field graphql.Coll } res := resTmp.([]*ent.User) fc.Result = res - return ec.marshalNUser2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalNUser2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2367,7 +2369,7 @@ func (ec *executionContext) _Query_me(ctx context.Context, field graphql.Collect } res := resTmp.(*ent.User) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) + return ec.marshalNUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Query_me(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2769,7 +2771,7 @@ func (ec *executionContext) _Quest_tome(ctx context.Context, field graphql.Colle } res := resTmp.(*ent.Tome) fc.Result = res - return ec.marshalNTome2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTome(ctx, field.Selections, res) + return ec.marshalNTome2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTome(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Quest_tome(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2828,7 +2830,7 @@ func (ec *executionContext) _Quest_bundle(ctx context.Context, field graphql.Col } res := resTmp.(*ent.File) fc.Result = res - return ec.marshalOFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFile(ctx, field.Selections, res) + return ec.marshalOFile2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFile(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Quest_bundle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2883,7 +2885,7 @@ func (ec *executionContext) _Quest_tasks(ctx context.Context, field graphql.Coll } res := resTmp.([]*ent.Task) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Quest_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -2908,6 +2910,8 @@ func (ec *executionContext) fieldContext_Quest_tasks(ctx context.Context, field return ec.fieldContext_Task_execFinishedAt(ctx, field) case "output": return ec.fieldContext_Task_output(ctx, field) + case "outputSize": + return ec.fieldContext_Task_outputSize(ctx, field) case "error": return ec.fieldContext_Task_error(ctx, field) case "quest": @@ -2946,7 +2950,7 @@ func (ec *executionContext) _Quest_creator(ctx context.Context, field graphql.Co } res := resTmp.(*ent.User) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) + return ec.marshalOUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Quest_creator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3090,7 +3094,7 @@ func (ec *executionContext) _Tag_kind(ctx context.Context, field graphql.Collect } res := resTmp.(tag.Kind) fc.Result = res - return ec.marshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, field.Selections, res) + return ec.marshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Tag_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3131,7 +3135,7 @@ func (ec *executionContext) _Tag_hosts(ctx context.Context, field graphql.Collec } res := resTmp.([]*ent.Host) fc.Result = res - return ec.marshalOHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostᚄ(ctx, field.Selections, res) + return ec.marshalOHost2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Tag_hosts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3461,6 +3465,50 @@ func (ec *executionContext) fieldContext_Task_output(ctx context.Context, field return fc, nil } +func (ec *executionContext) _Task_outputSize(ctx context.Context, field graphql.CollectedField, obj *ent.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_outputSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OutputSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Task_outputSize(ctx 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 Int does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Task_error(ctx context.Context, field graphql.CollectedField, obj *ent.Task) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Task_error(ctx, field) if err != nil { @@ -3530,7 +3578,7 @@ func (ec *executionContext) _Task_quest(ctx context.Context, field graphql.Colle } res := resTmp.(*ent.Quest) fc.Result = res - return ec.marshalNQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuest(ctx, field.Selections, res) + return ec.marshalNQuest2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuest(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Task_quest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3594,7 +3642,7 @@ func (ec *executionContext) _Task_beacon(ctx context.Context, field graphql.Coll } res := resTmp.(*ent.Beacon) fc.Result = res - return ec.marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx, field.Selections, res) + return ec.marshalNBeacon2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Task_beacon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3655,7 +3703,7 @@ func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field gra } res := resTmp.([]*ent.TaskEdge) fc.Result = res - return ec.marshalOTaskEdge2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskEdge(ctx, field.Selections, res) + return ec.marshalOTaskEdge2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskEdge(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_TaskConnection_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3800,7 +3848,7 @@ func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.Co } res := resTmp.(*ent.Task) fc.Result = res - return ec.marshalOTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx, field.Selections, res) + return ec.marshalOTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_TaskEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -3825,6 +3873,8 @@ func (ec *executionContext) fieldContext_TaskEdge_node(ctx context.Context, fiel return ec.fieldContext_Task_execFinishedAt(ctx, field) case "output": return ec.fieldContext_Task_output(ctx, field) + case "outputSize": + return ec.fieldContext_Task_outputSize(ctx, field) case "error": return ec.fieldContext_Task_error(ctx, field) case "quest": @@ -4212,7 +4262,7 @@ func (ec *executionContext) _Tome_files(ctx context.Context, field graphql.Colle } res := resTmp.([]*ent.File) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Tome_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -4497,7 +4547,7 @@ func (ec *executionContext) unmarshalInputBeaconOrder(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNBeaconOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx, v) + data, err := ec.unmarshalNBeaconOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx, v) if err != nil { return it, err } @@ -4526,7 +4576,7 @@ func (ec *executionContext) unmarshalInputBeaconWhereInput(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOBeaconWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, v) + data, err := ec.unmarshalOBeaconWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, v) if err != nil { return it, err } @@ -4535,7 +4585,7 @@ func (ec *executionContext) unmarshalInputBeaconWhereInput(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -4544,7 +4594,7 @@ func (ec *executionContext) unmarshalInputBeaconWhereInput(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -5318,7 +5368,7 @@ func (ec *executionContext) unmarshalInputBeaconWhereInput(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHostWith")) - data, err := ec.unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHostWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -5336,7 +5386,7 @@ func (ec *executionContext) unmarshalInputBeaconWhereInput(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTasksWith")) - data, err := ec.unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTaskWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -5421,7 +5471,7 @@ func (ec *executionContext) unmarshalInputCreateTagInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) + data, err := ec.unmarshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) if err != nil { return it, err } @@ -5537,7 +5587,7 @@ func (ec *executionContext) unmarshalInputFileOrder(ctx context.Context, obj int var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNFileOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileOrderField(ctx, v) + data, err := ec.unmarshalNFileOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileOrderField(ctx, v) if err != nil { return it, err } @@ -5566,7 +5616,7 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, v) if err != nil { return it, err } @@ -5575,7 +5625,7 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -5584,7 +5634,7 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6148,7 +6198,7 @@ func (ec *executionContext) unmarshalInputHostOrder(ctx context.Context, obj int var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNHostOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostOrderField(ctx, v) + data, err := ec.unmarshalNHostOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostOrderField(ctx, v) if err != nil { return it, err } @@ -6177,7 +6227,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOHostWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, v) + data, err := ec.unmarshalOHostWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, v) if err != nil { return it, err } @@ -6186,7 +6236,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHostWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6195,7 +6245,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHostWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6663,7 +6713,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platform")) - data, err := ec.unmarshalOHostPlatform2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) + data, err := ec.unmarshalOHostPlatform2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) if err != nil { return it, err } @@ -6672,7 +6722,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformNEQ")) - data, err := ec.unmarshalOHostPlatform2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) + data, err := ec.unmarshalOHostPlatform2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) if err != nil { return it, err } @@ -6681,7 +6731,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformIn")) - data, err := ec.unmarshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx, v) + data, err := ec.unmarshalOHostPlatform2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx, v) if err != nil { return it, err } @@ -6690,7 +6740,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("platformNotIn")) - data, err := ec.unmarshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx, v) + data, err := ec.unmarshalOHostPlatform2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx, v) if err != nil { return it, err } @@ -6798,7 +6848,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTagsWith")) - data, err := ec.unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTagWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6816,7 +6866,7 @@ func (ec *executionContext) unmarshalInputHostWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBeaconsWith")) - data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6858,7 +6908,7 @@ func (ec *executionContext) unmarshalInputQuestOrder(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNQuestOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx, v) + data, err := ec.unmarshalNQuestOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx, v) if err != nil { return it, err } @@ -6887,7 +6937,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOQuestWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, v) + data, err := ec.unmarshalOQuestWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, v) if err != nil { return it, err } @@ -6896,7 +6946,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOQuestWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -6905,7 +6955,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOQuestWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7391,7 +7441,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTomeWith")) - data, err := ec.unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTomeWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7409,7 +7459,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBundleWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7427,7 +7477,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTasksWith")) - data, err := ec.unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTaskWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7445,7 +7495,7 @@ func (ec *executionContext) unmarshalInputQuestWhereInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCreatorWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7487,7 +7537,7 @@ func (ec *executionContext) unmarshalInputTagOrder(ctx context.Context, obj inte var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTagOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagOrderField(ctx, v) + data, err := ec.unmarshalNTagOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagOrderField(ctx, v) if err != nil { return it, err } @@ -7516,7 +7566,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOTagWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, v) + data, err := ec.unmarshalOTagWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, v) if err != nil { return it, err } @@ -7525,7 +7575,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTagWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7534,7 +7584,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTagWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7732,7 +7782,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) + data, err := ec.unmarshalOTagKind2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) if err != nil { return it, err } @@ -7741,7 +7791,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) - data, err := ec.unmarshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) + data, err := ec.unmarshalOTagKind2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) if err != nil { return it, err } @@ -7750,7 +7800,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) - data, err := ec.unmarshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx, v) + data, err := ec.unmarshalOTagKind2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx, v) if err != nil { return it, err } @@ -7759,7 +7809,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) - data, err := ec.unmarshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx, v) + data, err := ec.unmarshalOTagKind2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx, v) if err != nil { return it, err } @@ -7777,7 +7827,7 @@ func (ec *executionContext) unmarshalInputTagWhereInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHostsWith")) - data, err := ec.unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHostWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7819,7 +7869,7 @@ func (ec *executionContext) unmarshalInputTaskOrder(ctx context.Context, obj int var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTaskOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx, v) + data, err := ec.unmarshalNTaskOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx, v) if err != nil { return it, err } @@ -7837,7 +7887,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "lastModifiedAt", "lastModifiedAtNEQ", "lastModifiedAtIn", "lastModifiedAtNotIn", "lastModifiedAtGT", "lastModifiedAtGTE", "lastModifiedAtLT", "lastModifiedAtLTE", "claimedAt", "claimedAtNEQ", "claimedAtIn", "claimedAtNotIn", "claimedAtGT", "claimedAtGTE", "claimedAtLT", "claimedAtLTE", "claimedAtIsNil", "claimedAtNotNil", "execStartedAt", "execStartedAtNEQ", "execStartedAtIn", "execStartedAtNotIn", "execStartedAtGT", "execStartedAtGTE", "execStartedAtLT", "execStartedAtLTE", "execStartedAtIsNil", "execStartedAtNotNil", "execFinishedAt", "execFinishedAtNEQ", "execFinishedAtIn", "execFinishedAtNotIn", "execFinishedAtGT", "execFinishedAtGTE", "execFinishedAtLT", "execFinishedAtLTE", "execFinishedAtIsNil", "execFinishedAtNotNil", "output", "outputNEQ", "outputIn", "outputNotIn", "outputGT", "outputGTE", "outputLT", "outputLTE", "outputContains", "outputHasPrefix", "outputHasSuffix", "outputIsNil", "outputNotNil", "outputEqualFold", "outputContainsFold", "error", "errorNEQ", "errorIn", "errorNotIn", "errorGT", "errorGTE", "errorLT", "errorLTE", "errorContains", "errorHasPrefix", "errorHasSuffix", "errorIsNil", "errorNotNil", "errorEqualFold", "errorContainsFold", "hasQuest", "hasQuestWith", "hasBeacon", "hasBeaconWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "lastModifiedAt", "lastModifiedAtNEQ", "lastModifiedAtIn", "lastModifiedAtNotIn", "lastModifiedAtGT", "lastModifiedAtGTE", "lastModifiedAtLT", "lastModifiedAtLTE", "claimedAt", "claimedAtNEQ", "claimedAtIn", "claimedAtNotIn", "claimedAtGT", "claimedAtGTE", "claimedAtLT", "claimedAtLTE", "claimedAtIsNil", "claimedAtNotNil", "execStartedAt", "execStartedAtNEQ", "execStartedAtIn", "execStartedAtNotIn", "execStartedAtGT", "execStartedAtGTE", "execStartedAtLT", "execStartedAtLTE", "execStartedAtIsNil", "execStartedAtNotNil", "execFinishedAt", "execFinishedAtNEQ", "execFinishedAtIn", "execFinishedAtNotIn", "execFinishedAtGT", "execFinishedAtGTE", "execFinishedAtLT", "execFinishedAtLTE", "execFinishedAtIsNil", "execFinishedAtNotNil", "output", "outputNEQ", "outputIn", "outputNotIn", "outputGT", "outputGTE", "outputLT", "outputLTE", "outputContains", "outputHasPrefix", "outputHasSuffix", "outputIsNil", "outputNotNil", "outputEqualFold", "outputContainsFold", "outputSize", "outputSizeNEQ", "outputSizeIn", "outputSizeNotIn", "outputSizeGT", "outputSizeGTE", "outputSizeLT", "outputSizeLTE", "error", "errorNEQ", "errorIn", "errorNotIn", "errorGT", "errorGTE", "errorLT", "errorLTE", "errorContains", "errorHasPrefix", "errorHasSuffix", "errorIsNil", "errorNotNil", "errorEqualFold", "errorContainsFold", "hasQuest", "hasQuestWith", "hasBeacon", "hasBeaconWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -7848,7 +7898,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, v) + data, err := ec.unmarshalOTaskWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, v) if err != nil { return it, err } @@ -7857,7 +7907,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTaskWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -7866,7 +7916,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTaskWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -8492,6 +8542,78 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob return it, err } it.OutputContainsFold = data + case "outputSize": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSize")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSize = data + case "outputSizeNEQ": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeNEQ")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeNEQ = data + case "outputSizeIn": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeIn = data + case "outputSizeNotIn": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeNotIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeNotIn = data + case "outputSizeGT": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeGT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeGT = data + case "outputSizeGTE": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeGTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeGTE = data + case "outputSizeLT": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeLT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeLT = data + case "outputSizeLTE": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("outputSizeLTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.OutputSizeLTE = data case "error": var err error @@ -8640,7 +8762,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasQuestWith")) - data, err := ec.unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOQuestWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -8658,7 +8780,7 @@ func (ec *executionContext) unmarshalInputTaskWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBeaconWith")) - data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOBeaconWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -8700,7 +8822,7 @@ func (ec *executionContext) unmarshalInputTomeOrder(ctx context.Context, obj int var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTomeOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx, v) + data, err := ec.unmarshalNTomeOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx, v) if err != nil { return it, err } @@ -8729,7 +8851,7 @@ func (ec *executionContext) unmarshalInputTomeWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOTomeWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, v) + data, err := ec.unmarshalOTomeWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, v) if err != nil { return it, err } @@ -8738,7 +8860,7 @@ func (ec *executionContext) unmarshalInputTomeWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTomeWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -8747,7 +8869,7 @@ func (ec *executionContext) unmarshalInputTomeWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTomeWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -9467,7 +9589,7 @@ func (ec *executionContext) unmarshalInputTomeWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -9626,7 +9748,7 @@ func (ec *executionContext) unmarshalInputUpdateTagInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) + data, err := ec.unmarshalOTagKind2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, v) if err != nil { return it, err } @@ -9738,7 +9860,7 @@ func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, v) if err != nil { return it, err } @@ -9747,7 +9869,7 @@ func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -9756,7 +9878,7 @@ func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -11121,6 +11243,11 @@ func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj out.Values[i] = ec._Task_execFinishedAt(ctx, field, obj) case "output": out.Values[i] = ec._Task_output(ctx, field, obj) + case "outputSize": + out.Values[i] = ec._Task_outputSize(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } case "error": out.Values[i] = ec._Task_error(ctx, field, obj) case "quest": @@ -11467,11 +11594,11 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // region ***************************** type.gotpl ***************************** -func (ec *executionContext) marshalNBeacon2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx context.Context, sel ast.SelectionSet, v ent.Beacon) graphql.Marshaler { +func (ec *executionContext) marshalNBeacon2realmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx context.Context, sel ast.SelectionSet, v ent.Beacon) graphql.Marshaler { return ec._Beacon(ctx, sel, &v) } -func (ec *executionContext) marshalNBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Beacon) graphql.Marshaler { +func (ec *executionContext) marshalNBeacon2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Beacon) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11495,7 +11622,7 @@ func (ec *executionContext) marshalNBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋreal if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx, sel, v[i]) + ret[i] = ec.marshalNBeacon2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11515,7 +11642,7 @@ func (ec *executionContext) marshalNBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋreal return ret } -func (ec *executionContext) marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx context.Context, sel ast.SelectionSet, v *ent.Beacon) graphql.Marshaler { +func (ec *executionContext) marshalNBeacon2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx context.Context, sel ast.SelectionSet, v *ent.Beacon) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11525,13 +11652,13 @@ func (ec *executionContext) marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealm return ec._Beacon(ctx, sel, v) } -func (ec *executionContext) unmarshalNBeaconOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx context.Context, v interface{}) (*ent.BeaconOrderField, error) { +func (ec *executionContext) unmarshalNBeaconOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx context.Context, v interface{}) (*ent.BeaconOrderField, error) { var res = new(ent.BeaconOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNBeaconOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.BeaconOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNBeaconOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.BeaconOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11541,22 +11668,22 @@ func (ec *executionContext) marshalNBeaconOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNBeaconWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx context.Context, v interface{}) (*ent.BeaconWhereInput, error) { +func (ec *executionContext) unmarshalNBeaconWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx context.Context, v interface{}) (*ent.BeaconWhereInput, error) { res, err := ec.unmarshalInputBeaconWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateQuestInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateQuestInput(ctx context.Context, v interface{}) (ent.CreateQuestInput, error) { +func (ec *executionContext) unmarshalNCreateQuestInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateQuestInput(ctx context.Context, v interface{}) (ent.CreateQuestInput, error) { res, err := ec.unmarshalInputCreateQuestInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTagInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateTagInput(ctx context.Context, v interface{}) (ent.CreateTagInput, error) { +func (ec *executionContext) unmarshalNCreateTagInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateTagInput(ctx context.Context, v interface{}) (ent.CreateTagInput, error) { res, err := ec.unmarshalInputCreateTagInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTomeInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateTomeInput(ctx context.Context, v interface{}) (ent.CreateTomeInput, error) { +func (ec *executionContext) unmarshalNCreateTomeInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateTomeInput(ctx context.Context, v interface{}) (ent.CreateTomeInput, error) { res, err := ec.unmarshalInputCreateTomeInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -11571,7 +11698,7 @@ func (ec *executionContext) marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCurso return v } -func (ec *executionContext) marshalNFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.File) graphql.Marshaler { +func (ec *executionContext) marshalNFile2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.File) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11595,7 +11722,7 @@ func (ec *executionContext) marshalNFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFile(ctx, sel, v[i]) + ret[i] = ec.marshalNFile2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFile(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11615,7 +11742,7 @@ func (ec *executionContext) marshalNFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFile(ctx context.Context, sel ast.SelectionSet, v *ent.File) graphql.Marshaler { +func (ec *executionContext) marshalNFile2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFile(ctx context.Context, sel ast.SelectionSet, v *ent.File) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11625,13 +11752,13 @@ func (ec *executionContext) marshalNFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋt return ec._File(ctx, sel, v) } -func (ec *executionContext) unmarshalNFileOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileOrderField(ctx context.Context, v interface{}) (*ent.FileOrderField, error) { +func (ec *executionContext) unmarshalNFileOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileOrderField(ctx context.Context, v interface{}) (*ent.FileOrderField, error) { var res = new(ent.FileOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFileOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.FileOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNFileOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.FileOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11641,16 +11768,16 @@ func (ec *executionContext) marshalNFileOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNFileWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx context.Context, v interface{}) (*ent.FileWhereInput, error) { +func (ec *executionContext) unmarshalNFileWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx context.Context, v interface{}) (*ent.FileWhereInput, error) { res, err := ec.unmarshalInputFileWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNHost2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx context.Context, sel ast.SelectionSet, v ent.Host) graphql.Marshaler { +func (ec *executionContext) marshalNHost2realmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx context.Context, sel ast.SelectionSet, v ent.Host) graphql.Marshaler { return ec._Host(ctx, sel, &v) } -func (ec *executionContext) marshalNHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Host) graphql.Marshaler { +func (ec *executionContext) marshalNHost2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Host) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11674,7 +11801,7 @@ func (ec *executionContext) marshalNHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx, sel, v[i]) + ret[i] = ec.marshalNHost2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11694,7 +11821,7 @@ func (ec *executionContext) marshalNHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx context.Context, sel ast.SelectionSet, v *ent.Host) graphql.Marshaler { +func (ec *executionContext) marshalNHost2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx context.Context, sel ast.SelectionSet, v *ent.Host) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11704,13 +11831,13 @@ func (ec *executionContext) marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋt return ec._Host(ctx, sel, v) } -func (ec *executionContext) unmarshalNHostOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostOrderField(ctx context.Context, v interface{}) (*ent.HostOrderField, error) { +func (ec *executionContext) unmarshalNHostOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostOrderField(ctx context.Context, v interface{}) (*ent.HostOrderField, error) { var res = new(ent.HostOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNHostOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.HostOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNHostOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.HostOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11720,22 +11847,22 @@ func (ec *executionContext) marshalNHostOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, v interface{}) (host.Platform, error) { +func (ec *executionContext) unmarshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, v interface{}) (host.Platform, error) { var res host.Platform err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, sel ast.SelectionSet, v host.Platform) graphql.Marshaler { +func (ec *executionContext) marshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, sel ast.SelectionSet, v host.Platform) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNHostWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx context.Context, v interface{}) (*ent.HostWhereInput, error) { +func (ec *executionContext) unmarshalNHostWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx context.Context, v interface{}) (*ent.HostWhereInput, error) { res, err := ec.unmarshalInputHostWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { +func (ec *executionContext) marshalNNode2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11759,7 +11886,7 @@ func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋt if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalONode2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐNoder(ctx, sel, v[i]) + ret[i] = ec.marshalONode2realmᚗpubᚋtavernᚋinternalᚋentᚐNoder(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11787,7 +11914,7 @@ func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPag return ec._PageInfo(ctx, sel, &v) } -func (ec *executionContext) marshalNQuest2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Quest) graphql.Marshaler { +func (ec *executionContext) marshalNQuest2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Quest) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11811,7 +11938,7 @@ func (ec *executionContext) marshalNQuest2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuest(ctx, sel, v[i]) + ret[i] = ec.marshalNQuest2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuest(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11831,7 +11958,7 @@ func (ec *executionContext) marshalNQuest2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuest(ctx context.Context, sel ast.SelectionSet, v *ent.Quest) graphql.Marshaler { +func (ec *executionContext) marshalNQuest2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuest(ctx context.Context, sel ast.SelectionSet, v *ent.Quest) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11841,13 +11968,13 @@ func (ec *executionContext) marshalNQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋ return ec._Quest(ctx, sel, v) } -func (ec *executionContext) unmarshalNQuestOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx context.Context, v interface{}) (*ent.QuestOrderField, error) { +func (ec *executionContext) unmarshalNQuestOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx context.Context, v interface{}) (*ent.QuestOrderField, error) { var res = new(ent.QuestOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNQuestOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.QuestOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNQuestOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.QuestOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11857,16 +11984,16 @@ func (ec *executionContext) marshalNQuestOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNQuestWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx context.Context, v interface{}) (*ent.QuestWhereInput, error) { +func (ec *executionContext) unmarshalNQuestWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx context.Context, v interface{}) (*ent.QuestWhereInput, error) { res, err := ec.unmarshalInputQuestWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTag2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx context.Context, sel ast.SelectionSet, v ent.Tag) graphql.Marshaler { +func (ec *executionContext) marshalNTag2realmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx context.Context, sel ast.SelectionSet, v ent.Tag) graphql.Marshaler { return ec._Tag(ctx, sel, &v) } -func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tag) graphql.Marshaler { +func (ec *executionContext) marshalNTag2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tag) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11890,7 +12017,7 @@ func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx, sel, v[i]) + ret[i] = ec.marshalNTag2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11910,7 +12037,7 @@ func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx context.Context, sel ast.SelectionSet, v *ent.Tag) graphql.Marshaler { +func (ec *executionContext) marshalNTag2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx context.Context, sel ast.SelectionSet, v *ent.Tag) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11920,23 +12047,23 @@ func (ec *executionContext) marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋta return ec._Tag(ctx, sel, v) } -func (ec *executionContext) unmarshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, v interface{}) (tag.Kind, error) { +func (ec *executionContext) unmarshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, v interface{}) (tag.Kind, error) { var res tag.Kind err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, sel ast.SelectionSet, v tag.Kind) graphql.Marshaler { +func (ec *executionContext) marshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, sel ast.SelectionSet, v tag.Kind) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNTagOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagOrderField(ctx context.Context, v interface{}) (*ent.TagOrderField, error) { +func (ec *executionContext) unmarshalNTagOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagOrderField(ctx context.Context, v interface{}) (*ent.TagOrderField, error) { var res = new(ent.TagOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTagOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TagOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNTagOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TagOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -11946,12 +12073,12 @@ func (ec *executionContext) marshalNTagOrderField2ᚖgithubᚗcomᚋkcarrettoᚋ return v } -func (ec *executionContext) unmarshalNTagWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx context.Context, v interface{}) (*ent.TagWhereInput, error) { +func (ec *executionContext) unmarshalNTagWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx context.Context, v interface{}) (*ent.TagWhereInput, error) { res, err := ec.unmarshalInputTagWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Task) graphql.Marshaler { +func (ec *executionContext) marshalNTask2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Task) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -11975,7 +12102,7 @@ func (ec *executionContext) marshalNTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx, sel, v[i]) + ret[i] = ec.marshalNTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx, sel, v[i]) } if isLen1 { f(i) @@ -11995,7 +12122,7 @@ func (ec *executionContext) marshalNTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx context.Context, sel ast.SelectionSet, v *ent.Task) graphql.Marshaler { +func (ec *executionContext) marshalNTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx context.Context, sel ast.SelectionSet, v *ent.Task) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12005,11 +12132,11 @@ func (ec *executionContext) marshalNTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋt return ec._Task(ctx, sel, v) } -func (ec *executionContext) marshalNTaskConnection2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v ent.TaskConnection) graphql.Marshaler { +func (ec *executionContext) marshalNTaskConnection2realmᚗpubᚋtavernᚋinternalᚋentᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v ent.TaskConnection) graphql.Marshaler { return ec._TaskConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNTaskConnection2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v *ent.TaskConnection) graphql.Marshaler { +func (ec *executionContext) marshalNTaskConnection2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v *ent.TaskConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12019,18 +12146,18 @@ func (ec *executionContext) marshalNTaskConnection2ᚖgithubᚗcomᚋkcarretto return ec._TaskConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNTaskOrder2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrder(ctx context.Context, v interface{}) (*ent.TaskOrder, error) { +func (ec *executionContext) unmarshalNTaskOrder2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrder(ctx context.Context, v interface{}) (*ent.TaskOrder, error) { res, err := ec.unmarshalInputTaskOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTaskOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx context.Context, v interface{}) (*ent.TaskOrderField, error) { +func (ec *executionContext) unmarshalNTaskOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx context.Context, v interface{}) (*ent.TaskOrderField, error) { var res = new(ent.TaskOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTaskOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TaskOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNTaskOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TaskOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12040,16 +12167,16 @@ func (ec *executionContext) marshalNTaskOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNTaskWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx context.Context, v interface{}) (*ent.TaskWhereInput, error) { +func (ec *executionContext) unmarshalNTaskWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx context.Context, v interface{}) (*ent.TaskWhereInput, error) { res, err := ec.unmarshalInputTaskWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTome2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTome(ctx context.Context, sel ast.SelectionSet, v ent.Tome) graphql.Marshaler { +func (ec *executionContext) marshalNTome2realmᚗpubᚋtavernᚋinternalᚋentᚐTome(ctx context.Context, sel ast.SelectionSet, v ent.Tome) graphql.Marshaler { return ec._Tome(ctx, sel, &v) } -func (ec *executionContext) marshalNTome2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tome) graphql.Marshaler { +func (ec *executionContext) marshalNTome2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tome) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -12073,7 +12200,7 @@ func (ec *executionContext) marshalNTome2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTome2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTome(ctx, sel, v[i]) + ret[i] = ec.marshalNTome2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTome(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12093,7 +12220,7 @@ func (ec *executionContext) marshalNTome2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNTome2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTome(ctx context.Context, sel ast.SelectionSet, v *ent.Tome) graphql.Marshaler { +func (ec *executionContext) marshalNTome2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTome(ctx context.Context, sel ast.SelectionSet, v *ent.Tome) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12103,13 +12230,13 @@ func (ec *executionContext) marshalNTome2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋt return ec._Tome(ctx, sel, v) } -func (ec *executionContext) unmarshalNTomeOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx context.Context, v interface{}) (*ent.TomeOrderField, error) { +func (ec *executionContext) unmarshalNTomeOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx context.Context, v interface{}) (*ent.TomeOrderField, error) { var res = new(ent.TomeOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNTomeOrderField2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TomeOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNTomeOrderField2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.TomeOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12119,36 +12246,36 @@ func (ec *executionContext) marshalNTomeOrderField2ᚖgithubᚗcomᚋkcarretto return v } -func (ec *executionContext) unmarshalNTomeWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx context.Context, v interface{}) (*ent.TomeWhereInput, error) { +func (ec *executionContext) unmarshalNTomeWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx context.Context, v interface{}) (*ent.TomeWhereInput, error) { res, err := ec.unmarshalInputTomeWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateBeaconInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateBeaconInput(ctx context.Context, v interface{}) (ent.UpdateBeaconInput, error) { +func (ec *executionContext) unmarshalNUpdateBeaconInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateBeaconInput(ctx context.Context, v interface{}) (ent.UpdateBeaconInput, error) { res, err := ec.unmarshalInputUpdateBeaconInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateHostInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateHostInput(ctx context.Context, v interface{}) (ent.UpdateHostInput, error) { +func (ec *executionContext) unmarshalNUpdateHostInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateHostInput(ctx context.Context, v interface{}) (ent.UpdateHostInput, error) { res, err := ec.unmarshalInputUpdateHostInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateTagInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateTagInput(ctx context.Context, v interface{}) (ent.UpdateTagInput, error) { +func (ec *executionContext) unmarshalNUpdateTagInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateTagInput(ctx context.Context, v interface{}) (ent.UpdateTagInput, error) { res, err := ec.unmarshalInputUpdateTagInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateUserInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateUserInput(ctx context.Context, v interface{}) (ent.UpdateUserInput, error) { +func (ec *executionContext) unmarshalNUpdateUserInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateUserInput(ctx context.Context, v interface{}) (ent.UpdateUserInput, error) { res, err := ec.unmarshalInputUpdateUserInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUser2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v ent.User) graphql.Marshaler { +func (ec *executionContext) marshalNUser2realmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v ent.User) graphql.Marshaler { return ec._User(ctx, sel, &v) } -func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.User) graphql.Marshaler { +func (ec *executionContext) marshalNUser2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.User) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -12172,7 +12299,7 @@ func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx, sel, v[i]) + ret[i] = ec.marshalNUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12192,7 +12319,7 @@ func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v *ent.User) graphql.Marshaler { +func (ec *executionContext) marshalNUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v *ent.User) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -12202,12 +12329,12 @@ func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋt return ec._User(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalNUserWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Beacon) graphql.Marshaler { +func (ec *executionContext) marshalOBeacon2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Beacon) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12234,7 +12361,7 @@ func (ec *executionContext) marshalOBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋreal if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx, sel, v[i]) + ret[i] = ec.marshalNBeacon2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12254,7 +12381,7 @@ func (ec *executionContext) marshalOBeacon2ᚕᚖgithubᚗcomᚋkcarrettoᚋreal return ret } -func (ec *executionContext) unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BeaconWhereInput, error) { +func (ec *executionContext) unmarshalOBeaconWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BeaconWhereInput, error) { if v == nil { return nil, nil } @@ -12266,7 +12393,7 @@ func (ec *executionContext) unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcar res := make([]*ent.BeaconWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNBeaconWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNBeaconWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12274,7 +12401,7 @@ func (ec *executionContext) unmarshalOBeaconWhereInput2ᚕᚖgithubᚗcomᚋkcar return res, nil } -func (ec *executionContext) unmarshalOBeaconWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx context.Context, v interface{}) (*ent.BeaconWhereInput, error) { +func (ec *executionContext) unmarshalOBeaconWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeaconWhereInput(ctx context.Context, v interface{}) (*ent.BeaconWhereInput, error) { if v == nil { return nil, nil } @@ -12298,7 +12425,7 @@ func (ec *executionContext) marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCu return v } -func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.File) graphql.Marshaler { +func (ec *executionContext) marshalOFile2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.File) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12325,7 +12452,7 @@ func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFile(ctx, sel, v[i]) + ret[i] = ec.marshalNFile2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFile(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12345,14 +12472,14 @@ func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalOFile2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFile(ctx context.Context, sel ast.SelectionSet, v *ent.File) graphql.Marshaler { +func (ec *executionContext) marshalOFile2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFile(ctx context.Context, sel ast.SelectionSet, v *ent.File) graphql.Marshaler { if v == nil { return graphql.Null } return ec._File(ctx, sel, v) } -func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FileWhereInput, error) { +func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FileWhereInput, error) { if v == nil { return nil, nil } @@ -12364,7 +12491,7 @@ func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarre res := make([]*ent.FileWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFileWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFileWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12372,7 +12499,7 @@ func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋkcarre return res, nil } -func (ec *executionContext) unmarshalOFileWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx context.Context, v interface{}) (*ent.FileWhereInput, error) { +func (ec *executionContext) unmarshalOFileWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐFileWhereInput(ctx context.Context, v interface{}) (*ent.FileWhereInput, error) { if v == nil { return nil, nil } @@ -12380,7 +12507,7 @@ func (ec *executionContext) unmarshalOFileWhereInput2ᚖgithubᚗcomᚋkcarretto return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Host) graphql.Marshaler { +func (ec *executionContext) marshalOHost2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Host) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12407,7 +12534,7 @@ func (ec *executionContext) marshalOHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx, sel, v[i]) + ret[i] = ec.marshalNHost2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12427,7 +12554,7 @@ func (ec *executionContext) marshalOHost2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) unmarshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx context.Context, v interface{}) ([]host.Platform, error) { +func (ec *executionContext) unmarshalOHostPlatform2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx context.Context, v interface{}) ([]host.Platform, error) { if v == nil { return nil, nil } @@ -12439,7 +12566,7 @@ func (ec *executionContext) unmarshalOHostPlatform2ᚕgithubᚗcomᚋkcarretto res := make([]host.Platform, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, vSlice[i]) + res[i], err = ec.unmarshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12447,7 +12574,7 @@ func (ec *executionContext) unmarshalOHostPlatform2ᚕgithubᚗcomᚋkcarretto return res, nil } -func (ec *executionContext) marshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx context.Context, sel ast.SelectionSet, v []host.Platform) graphql.Marshaler { +func (ec *executionContext) marshalOHostPlatform2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatformᚄ(ctx context.Context, sel ast.SelectionSet, v []host.Platform) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12474,7 +12601,7 @@ func (ec *executionContext) marshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋr if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, sel, v[i]) + ret[i] = ec.marshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12494,7 +12621,7 @@ func (ec *executionContext) marshalOHostPlatform2ᚕgithubᚗcomᚋkcarrettoᚋr return ret } -func (ec *executionContext) unmarshalOHostPlatform2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, v interface{}) (*host.Platform, error) { +func (ec *executionContext) unmarshalOHostPlatform2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, v interface{}) (*host.Platform, error) { if v == nil { return nil, nil } @@ -12503,14 +12630,14 @@ func (ec *executionContext) unmarshalOHostPlatform2ᚖgithubᚗcomᚋkcarretto return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOHostPlatform2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, sel ast.SelectionSet, v *host.Platform) graphql.Marshaler { +func (ec *executionContext) marshalOHostPlatform2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx context.Context, sel ast.SelectionSet, v *host.Platform) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.HostWhereInput, error) { +func (ec *executionContext) unmarshalOHostWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.HostWhereInput, error) { if v == nil { return nil, nil } @@ -12522,7 +12649,7 @@ func (ec *executionContext) unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarre res := make([]*ent.HostWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNHostWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNHostWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12530,7 +12657,7 @@ func (ec *executionContext) unmarshalOHostWhereInput2ᚕᚖgithubᚗcomᚋkcarre return res, nil } -func (ec *executionContext) unmarshalOHostWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx context.Context, v interface{}) (*ent.HostWhereInput, error) { +func (ec *executionContext) unmarshalOHostWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHostWhereInput(ctx context.Context, v interface{}) (*ent.HostWhereInput, error) { if v == nil { return nil, nil } @@ -12538,21 +12665,21 @@ func (ec *executionContext) unmarshalOHostWhereInput2ᚖgithubᚗcomᚋkcarretto return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalONode2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v ent.Noder) graphql.Marshaler { +func (ec *executionContext) marshalONode2realmᚗpubᚋtavernᚋinternalᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v ent.Noder) graphql.Marshaler { if v == nil { return graphql.Null } return ec._Node(ctx, sel, v) } -func (ec *executionContext) marshalOQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuest(ctx context.Context, sel ast.SelectionSet, v *ent.Quest) graphql.Marshaler { +func (ec *executionContext) marshalOQuest2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuest(ctx context.Context, sel ast.SelectionSet, v *ent.Quest) graphql.Marshaler { if v == nil { return graphql.Null } return ec._Quest(ctx, sel, v) } -func (ec *executionContext) unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.QuestWhereInput, error) { +func (ec *executionContext) unmarshalOQuestWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.QuestWhereInput, error) { if v == nil { return nil, nil } @@ -12564,7 +12691,7 @@ func (ec *executionContext) unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarr res := make([]*ent.QuestWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNQuestWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNQuestWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12572,7 +12699,7 @@ func (ec *executionContext) unmarshalOQuestWhereInput2ᚕᚖgithubᚗcomᚋkcarr return res, nil } -func (ec *executionContext) unmarshalOQuestWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx context.Context, v interface{}) (*ent.QuestWhereInput, error) { +func (ec *executionContext) unmarshalOQuestWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuestWhereInput(ctx context.Context, v interface{}) (*ent.QuestWhereInput, error) { if v == nil { return nil, nil } @@ -12580,7 +12707,7 @@ func (ec *executionContext) unmarshalOQuestWhereInput2ᚖgithubᚗcomᚋkcarrett return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tag) graphql.Marshaler { +func (ec *executionContext) marshalOTag2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Tag) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12607,7 +12734,7 @@ func (ec *executionContext) marshalOTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx, sel, v[i]) + ret[i] = ec.marshalNTag2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12627,7 +12754,7 @@ func (ec *executionContext) marshalOTag2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) unmarshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx context.Context, v interface{}) ([]tag.Kind, error) { +func (ec *executionContext) unmarshalOTagKind2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx context.Context, v interface{}) ([]tag.Kind, error) { if v == nil { return nil, nil } @@ -12639,7 +12766,7 @@ func (ec *executionContext) unmarshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋreal res := make([]tag.Kind, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, vSlice[i]) + res[i], err = ec.unmarshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12647,7 +12774,7 @@ func (ec *executionContext) unmarshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋreal return res, nil } -func (ec *executionContext) marshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx context.Context, sel ast.SelectionSet, v []tag.Kind) graphql.Marshaler { +func (ec *executionContext) marshalOTagKind2ᚕrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKindᚄ(ctx context.Context, sel ast.SelectionSet, v []tag.Kind) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12674,7 +12801,7 @@ func (ec *executionContext) marshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTagKind2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, sel, v[i]) + ret[i] = ec.marshalNTagKind2realmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12694,7 +12821,7 @@ func (ec *executionContext) marshalOTagKind2ᚕgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) unmarshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, v interface{}) (*tag.Kind, error) { +func (ec *executionContext) unmarshalOTagKind2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, v interface{}) (*tag.Kind, error) { if v == nil { return nil, nil } @@ -12703,14 +12830,14 @@ func (ec *executionContext) unmarshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋreal return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOTagKind2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, sel ast.SelectionSet, v *tag.Kind) graphql.Marshaler { +func (ec *executionContext) marshalOTagKind2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚋtagᚐKind(ctx context.Context, sel ast.SelectionSet, v *tag.Kind) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TagWhereInput, error) { +func (ec *executionContext) unmarshalOTagWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TagWhereInput, error) { if v == nil { return nil, nil } @@ -12722,7 +12849,7 @@ func (ec *executionContext) unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarret res := make([]*ent.TagWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTagWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNTagWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12730,7 +12857,7 @@ func (ec *executionContext) unmarshalOTagWhereInput2ᚕᚖgithubᚗcomᚋkcarret return res, nil } -func (ec *executionContext) unmarshalOTagWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx context.Context, v interface{}) (*ent.TagWhereInput, error) { +func (ec *executionContext) unmarshalOTagWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTagWhereInput(ctx context.Context, v interface{}) (*ent.TagWhereInput, error) { if v == nil { return nil, nil } @@ -12738,7 +12865,7 @@ func (ec *executionContext) unmarshalOTagWhereInput2ᚖgithubᚗcomᚋkcarretto return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Task) graphql.Marshaler { +func (ec *executionContext) marshalOTask2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Task) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12765,7 +12892,7 @@ func (ec *executionContext) marshalOTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx, sel, v[i]) + ret[i] = ec.marshalNTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12785,14 +12912,14 @@ func (ec *executionContext) marshalOTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealm return ret } -func (ec *executionContext) marshalOTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx context.Context, sel ast.SelectionSet, v *ent.Task) graphql.Marshaler { +func (ec *executionContext) marshalOTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx context.Context, sel ast.SelectionSet, v *ent.Task) graphql.Marshaler { if v == nil { return graphql.Null } return ec._Task(ctx, sel, v) } -func (ec *executionContext) marshalOTaskEdge2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v []*ent.TaskEdge) graphql.Marshaler { +func (ec *executionContext) marshalOTaskEdge2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v []*ent.TaskEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -12819,7 +12946,7 @@ func (ec *executionContext) marshalOTaskEdge2ᚕᚖgithubᚗcomᚋkcarrettoᚋre if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOTaskEdge2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOTaskEdge2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -12833,14 +12960,14 @@ func (ec *executionContext) marshalOTaskEdge2ᚕᚖgithubᚗcomᚋkcarrettoᚋre return ret } -func (ec *executionContext) marshalOTaskEdge2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v *ent.TaskEdge) graphql.Marshaler { +func (ec *executionContext) marshalOTaskEdge2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v *ent.TaskEdge) graphql.Marshaler { if v == nil { return graphql.Null } return ec._TaskEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TaskOrder, error) { +func (ec *executionContext) unmarshalOTaskOrder2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TaskOrder, error) { if v == nil { return nil, nil } @@ -12852,7 +12979,7 @@ func (ec *executionContext) unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋkcarretto res := make([]*ent.TaskOrder, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTaskOrder2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskOrder(ctx, vSlice[i]) + res[i], err = ec.unmarshalNTaskOrder2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskOrder(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12860,7 +12987,7 @@ func (ec *executionContext) unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋkcarretto return res, nil } -func (ec *executionContext) unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TaskWhereInput, error) { +func (ec *executionContext) unmarshalOTaskWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TaskWhereInput, error) { if v == nil { return nil, nil } @@ -12872,7 +12999,7 @@ func (ec *executionContext) unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarre res := make([]*ent.TaskWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTaskWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNTaskWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12880,7 +13007,7 @@ func (ec *executionContext) unmarshalOTaskWhereInput2ᚕᚖgithubᚗcomᚋkcarre return res, nil } -func (ec *executionContext) unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx context.Context, v interface{}) (*ent.TaskWhereInput, error) { +func (ec *executionContext) unmarshalOTaskWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskWhereInput(ctx context.Context, v interface{}) (*ent.TaskWhereInput, error) { if v == nil { return nil, nil } @@ -12888,7 +13015,7 @@ func (ec *executionContext) unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋkcarretto return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TomeWhereInput, error) { +func (ec *executionContext) unmarshalOTomeWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TomeWhereInput, error) { if v == nil { return nil, nil } @@ -12900,7 +13027,7 @@ func (ec *executionContext) unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarre res := make([]*ent.TomeWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTomeWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNTomeWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12908,7 +13035,7 @@ func (ec *executionContext) unmarshalOTomeWhereInput2ᚕᚖgithubᚗcomᚋkcarre return res, nil } -func (ec *executionContext) unmarshalOTomeWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx context.Context, v interface{}) (*ent.TomeWhereInput, error) { +func (ec *executionContext) unmarshalOTomeWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTomeWhereInput(ctx context.Context, v interface{}) (*ent.TomeWhereInput, error) { if v == nil { return nil, nil } @@ -12916,14 +13043,14 @@ func (ec *executionContext) unmarshalOTomeWhereInput2ᚖgithubᚗcomᚋkcarretto return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v *ent.User) graphql.Marshaler { +func (ec *executionContext) marshalOUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx context.Context, sel ast.SelectionSet, v *ent.User) graphql.Marshaler { if v == nil { return graphql.Null } return ec._User(ctx, sel, v) } -func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { if v == nil { return nil, nil } @@ -12935,7 +13062,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarre res := make([]*ent.UserWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUserWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNUserWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -12943,7 +13070,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋkcarre return res, nil } -func (ec *executionContext) unmarshalOUserWhereInput2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { if v == nil { return nil, nil } diff --git a/tavern/internal/graphql/generated/inputs.generated.go b/tavern/internal/graphql/generated/inputs.generated.go index bfd286ba9..2280c2c00 100644 --- a/tavern/internal/graphql/generated/inputs.generated.go +++ b/tavern/internal/graphql/generated/inputs.generated.go @@ -63,7 +63,7 @@ func (ec *executionContext) unmarshalInputClaimTasksInput(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hostPlatform")) - data, err := ec.unmarshalNHostPlatform2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) + data, err := ec.unmarshalNHostPlatform2realmᚗpubᚋtavernᚋinternalᚋentᚋhostᚐPlatform(ctx, v) if err != nil { return it, err } @@ -187,12 +187,12 @@ func (ec *executionContext) unmarshalInputSubmitTaskResultInput(ctx context.Cont // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNClaimTasksInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐClaimTasksInput(ctx context.Context, v interface{}) (models.ClaimTasksInput, error) { +func (ec *executionContext) unmarshalNClaimTasksInput2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐClaimTasksInput(ctx context.Context, v interface{}) (models.ClaimTasksInput, error) { res, err := ec.unmarshalInputClaimTasksInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNSubmitTaskResultInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐSubmitTaskResultInput(ctx context.Context, v interface{}) (models.SubmitTaskResultInput, error) { +func (ec *executionContext) unmarshalNSubmitTaskResultInput2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐSubmitTaskResultInput(ctx context.Context, v interface{}) (models.SubmitTaskResultInput, error) { res, err := ec.unmarshalInputSubmitTaskResultInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/tavern/internal/graphql/generated/mutation.generated.go b/tavern/internal/graphql/generated/mutation.generated.go index 069ed8dae..ee55d23b0 100644 --- a/tavern/internal/graphql/generated/mutation.generated.go +++ b/tavern/internal/graphql/generated/mutation.generated.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "github.com/99designs/gqlgen/graphql" + "github.com/vektah/gqlparser/v2/ast" "realm.pub/tavern/internal/ent" "realm.pub/tavern/internal/graphql/models" - "github.com/vektah/gqlparser/v2/ast" ) // region ************************** generated!.gotpl ************************** @@ -39,7 +39,7 @@ func (ec *executionContext) field_Mutation_claimTasks_args(ctx context.Context, var arg0 models.ClaimTasksInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNClaimTasksInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐClaimTasksInput(ctx, tmp) + arg0, err = ec.unmarshalNClaimTasksInput2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐClaimTasksInput(ctx, tmp) if err != nil { return nil, err } @@ -63,7 +63,7 @@ func (ec *executionContext) field_Mutation_createQuest_args(ctx context.Context, var arg1 ent.CreateQuestInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNCreateQuestInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateQuestInput(ctx, tmp) + arg1, err = ec.unmarshalNCreateQuestInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateQuestInput(ctx, tmp) if err != nil { return nil, err } @@ -78,7 +78,7 @@ func (ec *executionContext) field_Mutation_createTag_args(ctx context.Context, r var arg0 ent.CreateTagInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNCreateTagInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateTagInput(ctx, tmp) + arg0, err = ec.unmarshalNCreateTagInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateTagInput(ctx, tmp) if err != nil { return nil, err } @@ -93,7 +93,7 @@ func (ec *executionContext) field_Mutation_createTome_args(ctx context.Context, var arg0 ent.CreateTomeInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNCreateTomeInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐCreateTomeInput(ctx, tmp) + arg0, err = ec.unmarshalNCreateTomeInput2realmᚗpubᚋtavernᚋinternalᚋentᚐCreateTomeInput(ctx, tmp) if err != nil { return nil, err } @@ -108,7 +108,7 @@ func (ec *executionContext) field_Mutation_submitTaskResult_args(ctx context.Con var arg0 models.SubmitTaskResultInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNSubmitTaskResultInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐSubmitTaskResultInput(ctx, tmp) + arg0, err = ec.unmarshalNSubmitTaskResultInput2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐSubmitTaskResultInput(ctx, tmp) if err != nil { return nil, err } @@ -132,7 +132,7 @@ func (ec *executionContext) field_Mutation_updateBeacon_args(ctx context.Context var arg1 ent.UpdateBeaconInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNUpdateBeaconInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateBeaconInput(ctx, tmp) + arg1, err = ec.unmarshalNUpdateBeaconInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateBeaconInput(ctx, tmp) if err != nil { return nil, err } @@ -156,7 +156,7 @@ func (ec *executionContext) field_Mutation_updateHost_args(ctx context.Context, var arg1 ent.UpdateHostInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNUpdateHostInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateHostInput(ctx, tmp) + arg1, err = ec.unmarshalNUpdateHostInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateHostInput(ctx, tmp) if err != nil { return nil, err } @@ -180,7 +180,7 @@ func (ec *executionContext) field_Mutation_updateTag_args(ctx context.Context, r var arg1 ent.UpdateTagInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNUpdateTagInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateTagInput(ctx, tmp) + arg1, err = ec.unmarshalNUpdateTagInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateTagInput(ctx, tmp) if err != nil { return nil, err } @@ -204,7 +204,7 @@ func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, var arg1 ent.UpdateUserInput if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg1, err = ec.unmarshalNUpdateUserInput2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUpdateUserInput(ctx, tmp) + arg1, err = ec.unmarshalNUpdateUserInput2realmᚗpubᚋtavernᚋinternalᚋentᚐUpdateUserInput(ctx, tmp) if err != nil { return nil, err } @@ -239,7 +239,7 @@ func (ec *executionContext) _Mutation_createQuest(ctx context.Context, field gra return ec.resolvers.Mutation().CreateQuest(rctx, fc.Args["beaconIDs"].([]int), fc.Args["input"].(ent.CreateQuestInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -270,7 +270,7 @@ func (ec *executionContext) _Mutation_createQuest(ctx context.Context, field gra } res := resTmp.(*ent.Quest) fc.Result = res - return ec.marshalOQuest2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐQuest(ctx, field.Selections, res) + return ec.marshalOQuest2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐQuest(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_createQuest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -335,7 +335,7 @@ func (ec *executionContext) _Mutation_updateBeacon(ctx context.Context, field gr return ec.resolvers.Mutation().UpdateBeacon(rctx, fc.Args["beaconID"].(int), fc.Args["input"].(ent.UpdateBeaconInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -369,7 +369,7 @@ func (ec *executionContext) _Mutation_updateBeacon(ctx context.Context, field gr } res := resTmp.(*ent.Beacon) fc.Result = res - return ec.marshalNBeacon2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐBeacon(ctx, field.Selections, res) + return ec.marshalNBeacon2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐBeacon(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_updateBeacon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -434,7 +434,7 @@ func (ec *executionContext) _Mutation_updateHost(ctx context.Context, field grap return ec.resolvers.Mutation().UpdateHost(rctx, fc.Args["hostID"].(int), fc.Args["input"].(ent.UpdateHostInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -468,7 +468,7 @@ func (ec *executionContext) _Mutation_updateHost(ctx context.Context, field grap } res := resTmp.(*ent.Host) fc.Result = res - return ec.marshalNHost2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐHost(ctx, field.Selections, res) + return ec.marshalNHost2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐHost(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_updateHost(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -531,7 +531,7 @@ func (ec *executionContext) _Mutation_createTag(ctx context.Context, field graph return ec.resolvers.Mutation().CreateTag(rctx, fc.Args["input"].(ent.CreateTagInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "ADMIN") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "ADMIN") if err != nil { return nil, err } @@ -565,7 +565,7 @@ func (ec *executionContext) _Mutation_createTag(ctx context.Context, field graph } res := resTmp.(*ent.Tag) fc.Result = res - return ec.marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx, field.Selections, res) + return ec.marshalNTag2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_createTag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -620,7 +620,7 @@ func (ec *executionContext) _Mutation_updateTag(ctx context.Context, field graph return ec.resolvers.Mutation().UpdateTag(rctx, fc.Args["tagID"].(int), fc.Args["input"].(ent.UpdateTagInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -654,7 +654,7 @@ func (ec *executionContext) _Mutation_updateTag(ctx context.Context, field graph } res := resTmp.(*ent.Tag) fc.Result = res - return ec.marshalNTag2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTag(ctx, field.Selections, res) + return ec.marshalNTag2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTag(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_updateTag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -719,7 +719,7 @@ func (ec *executionContext) _Mutation_claimTasks(ctx context.Context, field grap } res := resTmp.([]*ent.Task) fc.Result = res - return ec.marshalNTask2ᚕᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalNTask2ᚕᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTaskᚄ(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_claimTasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -744,6 +744,8 @@ func (ec *executionContext) fieldContext_Mutation_claimTasks(ctx context.Context return ec.fieldContext_Task_execFinishedAt(ctx, field) case "output": return ec.fieldContext_Task_output(ctx, field) + case "outputSize": + return ec.fieldContext_Task_outputSize(ctx, field) case "error": return ec.fieldContext_Task_error(ctx, field) case "quest": @@ -793,7 +795,7 @@ func (ec *executionContext) _Mutation_submitTaskResult(ctx context.Context, fiel } res := resTmp.(*ent.Task) fc.Result = res - return ec.marshalOTask2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTask(ctx, field.Selections, res) + return ec.marshalOTask2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTask(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_submitTaskResult(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -818,6 +820,8 @@ func (ec *executionContext) fieldContext_Mutation_submitTaskResult(ctx context.C return ec.fieldContext_Task_execFinishedAt(ctx, field) case "output": return ec.fieldContext_Task_output(ctx, field) + case "outputSize": + return ec.fieldContext_Task_outputSize(ctx, field) case "error": return ec.fieldContext_Task_error(ctx, field) case "quest": @@ -860,7 +864,7 @@ func (ec *executionContext) _Mutation_createTome(ctx context.Context, field grap return ec.resolvers.Mutation().CreateTome(rctx, fc.Args["input"].(ent.CreateTomeInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "USER") if err != nil { return nil, err } @@ -894,7 +898,7 @@ func (ec *executionContext) _Mutation_createTome(ctx context.Context, field grap } res := resTmp.(*ent.Tome) fc.Result = res - return ec.marshalNTome2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐTome(ctx, field.Selections, res) + return ec.marshalNTome2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐTome(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_createTome(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -957,7 +961,7 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["userID"].(int), fc.Args["input"].(ent.UpdateUserInput)) } directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "ADMIN") + role, err := ec.unmarshalNRole2realmᚗpubᚋtavernᚋinternalᚋgraphqlᚋmodelsᚐRole(ctx, "ADMIN") if err != nil { return nil, err } @@ -988,7 +992,7 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap } res := resTmp.(*ent.User) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋkcarrettoᚋrealmᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) + return ec.marshalOUser2ᚖrealmᚗpubᚋtavernᚋinternalᚋentᚐUser(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { diff --git a/tavern/internal/graphql/generated/root_.generated.go b/tavern/internal/graphql/generated/root_.generated.go index ba522ede8..98fe932b4 100644 --- a/tavern/internal/graphql/generated/root_.generated.go +++ b/tavern/internal/graphql/generated/root_.generated.go @@ -11,10 +11,10 @@ import ( "entgo.io/contrib/entgql" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/introspection" - "realm.pub/tavern/internal/ent" - "realm.pub/tavern/internal/graphql/models" gqlparser "github.com/vektah/gqlparser/v2" "github.com/vektah/gqlparser/v2/ast" + "realm.pub/tavern/internal/ent" + "realm.pub/tavern/internal/graphql/models" ) // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. @@ -138,6 +138,7 @@ type ComplexityRoot struct { ID func(childComplexity int) int LastModifiedAt func(childComplexity int) int Output func(childComplexity int) int + OutputSize func(childComplexity int) int Quest func(childComplexity int) int } @@ -769,6 +770,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Task.Output(childComplexity), true + case "Task.outputSize": + if e.complexity.Task.OutputSize == nil { + break + } + + return e.complexity.Task.OutputSize(childComplexity), true + case "Task.quest": if e.complexity.Task.Quest == nil { break @@ -1669,6 +1677,8 @@ type Task implements Node { execFinishedAt: Time """Output from executing the task""" output: String + """The size of the output in bytes""" + outputSize: Int! """Error, if any, produced while executing the Task""" error: String quest: Quest! @@ -1704,6 +1714,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT + SIZE } """ TaskWhereInput is used for filtering Task objects. @@ -1789,6 +1800,15 @@ input TaskWhereInput { outputNotNil: Boolean outputEqualFold: String outputContainsFold: String + """output_size field predicates""" + outputSize: Int + outputSizeNEQ: Int + outputSizeIn: [Int!] + outputSizeNotIn: [Int!] + outputSizeGT: Int + outputSizeGTE: Int + outputSizeLT: Int + outputSizeLTE: Int """error field predicates""" error: String errorNEQ: String diff --git a/tavern/internal/graphql/schema.graphql b/tavern/internal/graphql/schema.graphql index 4734fa18c..aab2cf273 100644 --- a/tavern/internal/graphql/schema.graphql +++ b/tavern/internal/graphql/schema.graphql @@ -635,6 +635,8 @@ type Task implements Node { execFinishedAt: Time """Output from executing the task""" output: String + """The size of the output in bytes""" + outputSize: Int! """Error, if any, produced while executing the Task""" error: String quest: Quest! @@ -670,6 +672,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT + SIZE } """ TaskWhereInput is used for filtering Task objects. @@ -755,6 +758,15 @@ input TaskWhereInput { outputNotNil: Boolean outputEqualFold: String outputContainsFold: String + """output_size field predicates""" + outputSize: Int + outputSizeNEQ: Int + outputSizeIn: [Int!] + outputSizeNotIn: [Int!] + outputSizeGT: Int + outputSizeGTE: Int + outputSizeLT: Int + outputSizeLTE: Int """error field predicates""" error: String errorNEQ: String diff --git a/tavern/internal/graphql/schema/ent.graphql b/tavern/internal/graphql/schema/ent.graphql index d0302ba60..a0de8eb79 100644 --- a/tavern/internal/graphql/schema/ent.graphql +++ b/tavern/internal/graphql/schema/ent.graphql @@ -630,6 +630,8 @@ type Task implements Node { execFinishedAt: Time """Output from executing the task""" output: String + """The size of the output in bytes""" + outputSize: Int! """Error, if any, produced while executing the Task""" error: String quest: Quest! @@ -665,6 +667,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT + SIZE } """ TaskWhereInput is used for filtering Task objects. @@ -750,6 +753,15 @@ input TaskWhereInput { outputNotNil: Boolean outputEqualFold: String outputContainsFold: String + """output_size field predicates""" + outputSize: Int + outputSizeNEQ: Int + outputSizeIn: [Int!] + outputSizeNotIn: [Int!] + outputSizeGT: Int + outputSizeGTE: Int + outputSizeLT: Int + outputSizeLTE: Int """error field predicates""" error: String errorNEQ: String diff --git a/tavern/internal/www/schema.graphql b/tavern/internal/www/schema.graphql index 4734fa18c..aab2cf273 100644 --- a/tavern/internal/www/schema.graphql +++ b/tavern/internal/www/schema.graphql @@ -635,6 +635,8 @@ type Task implements Node { execFinishedAt: Time """Output from executing the task""" output: String + """The size of the output in bytes""" + outputSize: Int! """Error, if any, produced while executing the Task""" error: String quest: Quest! @@ -670,6 +672,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT + SIZE } """ TaskWhereInput is used for filtering Task objects. @@ -755,6 +758,15 @@ input TaskWhereInput { outputNotNil: Boolean outputEqualFold: String outputContainsFold: String + """output_size field predicates""" + outputSize: Int + outputSizeNEQ: Int + outputSizeIn: [Int!] + outputSizeNotIn: [Int!] + outputSizeGT: Int + outputSizeGTE: Int + outputSizeLT: Int + outputSizeLTE: Int """error field predicates""" error: String errorNEQ: String From 63d805b3dae4098840edfa190b49b53edc77651d Mon Sep 17 00:00:00 2001 From: KCarretto Date: Fri, 19 Jan 2024 19:13:33 +0000 Subject: [PATCH 2/2] Rename order field to OUTPUT_SIZE --- tavern/internal/ent/gql_pagination.go | 4 ++-- tavern/internal/ent/schema/task.go | 2 +- tavern/internal/graphql/generated/root_.generated.go | 2 +- tavern/internal/graphql/schema.graphql | 2 +- tavern/internal/graphql/schema/ent.graphql | 2 +- tavern/internal/www/schema.graphql | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tavern/internal/ent/gql_pagination.go b/tavern/internal/ent/gql_pagination.go index b630c8ee4..50196d99b 100644 --- a/tavern/internal/ent/gql_pagination.go +++ b/tavern/internal/ent/gql_pagination.go @@ -2021,7 +2021,7 @@ func (f TaskOrderField) String() string { case TaskOrderFieldExecFinishedAt.column: str = "EXEC_FINISHED_AT" case TaskOrderFieldOutputSize.column: - str = "SIZE" + str = "OUTPUT_SIZE" } return str } @@ -2048,7 +2048,7 @@ func (f *TaskOrderField) UnmarshalGQL(v interface{}) error { *f = *TaskOrderFieldExecStartedAt case "EXEC_FINISHED_AT": *f = *TaskOrderFieldExecFinishedAt - case "SIZE": + case "OUTPUT_SIZE": *f = *TaskOrderFieldOutputSize default: return fmt.Errorf("%s is not a valid TaskOrderField", str) diff --git a/tavern/internal/ent/schema/task.go b/tavern/internal/ent/schema/task.go index 79dfa7167..7dedb5f1a 100644 --- a/tavern/internal/ent/schema/task.go +++ b/tavern/internal/ent/schema/task.go @@ -45,7 +45,7 @@ func (Task) Fields() []ent.Field { Default(0). Min(0). Annotations( - entgql.OrderField("SIZE"), + entgql.OrderField("OUTPUT_SIZE"), ). Comment("The size of the output in bytes"), field.String("error"). diff --git a/tavern/internal/graphql/generated/root_.generated.go b/tavern/internal/graphql/generated/root_.generated.go index 98fe932b4..534c2918b 100644 --- a/tavern/internal/graphql/generated/root_.generated.go +++ b/tavern/internal/graphql/generated/root_.generated.go @@ -1714,7 +1714,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT - SIZE + OUTPUT_SIZE } """ TaskWhereInput is used for filtering Task objects. diff --git a/tavern/internal/graphql/schema.graphql b/tavern/internal/graphql/schema.graphql index aab2cf273..654f0b661 100644 --- a/tavern/internal/graphql/schema.graphql +++ b/tavern/internal/graphql/schema.graphql @@ -672,7 +672,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT - SIZE + OUTPUT_SIZE } """ TaskWhereInput is used for filtering Task objects. diff --git a/tavern/internal/graphql/schema/ent.graphql b/tavern/internal/graphql/schema/ent.graphql index a0de8eb79..f049210fb 100644 --- a/tavern/internal/graphql/schema/ent.graphql +++ b/tavern/internal/graphql/schema/ent.graphql @@ -667,7 +667,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT - SIZE + OUTPUT_SIZE } """ TaskWhereInput is used for filtering Task objects. diff --git a/tavern/internal/www/schema.graphql b/tavern/internal/www/schema.graphql index aab2cf273..654f0b661 100644 --- a/tavern/internal/www/schema.graphql +++ b/tavern/internal/www/schema.graphql @@ -672,7 +672,7 @@ enum TaskOrderField { CLAIMED_AT EXEC_STARTED_AT EXEC_FINISHED_AT - SIZE + OUTPUT_SIZE } """ TaskWhereInput is used for filtering Task objects.