diff --git a/internal/graphql/gqlserver/generated.go b/internal/graphql/gqlserver/generated.go index 873b98a..9e72ba4 100644 --- a/internal/graphql/gqlserver/generated.go +++ b/internal/graphql/gqlserver/generated.go @@ -1581,7 +1581,7 @@ type Occurrence { priceGuest: Int tags: [Tag!]! reviewData(filter: ReviewFilter): ReviewDataOccurrence! - notAvailableAfter: Date! + notAvailableAfter: Date } type ReviewDataOccurrence { @@ -5267,14 +5267,11 @@ func (ec *executionContext) _Occurrence_notAvailableAfter(ctx context.Context, f return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNDate2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalODate2ᚖtimeᚐTime(ctx, field.Selections, res) } func (ec *executionContext) fieldContext_Occurrence_notAvailableAfter(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { @@ -11606,9 +11603,6 @@ func (ec *executionContext) _Occurrence(ctx context.Context, sel ast.SelectionSe out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "notAvailableAfter": out.Values[i] = ec._Occurrence_notAvailableAfter(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -12833,27 +12827,6 @@ func (ec *executionContext) marshalNDate2timeᚐTime(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalNDate2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { - res, err := scalars.UnmarshalDate(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDate2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) 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") - } - return graphql.Null - } - res := scalars.MarshalDate(*v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - func (ec *executionContext) unmarshalNDeleteDishAliasInput2githubᚗcomᚋmensattᚋbackendᚋinternalᚋgraphqlᚋmodelsᚐDeleteDishAliasInput(ctx context.Context, v interface{}) (models.DeleteDishAliasInput, error) { res, err := ec.unmarshalInputDeleteDishAliasInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) diff --git a/internal/graphql/schema/types.graphql b/internal/graphql/schema/types.graphql index dc946a4..64c4cce 100644 --- a/internal/graphql/schema/types.graphql +++ b/internal/graphql/schema/types.graphql @@ -66,7 +66,7 @@ type Occurrence { priceGuest: Int tags: [Tag!]! reviewData(filter: ReviewFilter): ReviewDataOccurrence! - notAvailableAfter: Date! + notAvailableAfter: Date } type ReviewDataOccurrence {