Skip to content

Latest schema does not autogenerate types #201

Description

@DominicOram

When trying to generate types against the schema produced in https://github.com/DiamondLightSource/graph-federation/actions/runs/30467711235/job/90629700962 using the documentation from https://github.com/DiamondLightSource/atlas/tree/main/apps/i15-1#updating-supergraph-schema-types I got an error of:

  ❯ Generate to ./src/graphql/__generated__/
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ OneOf input field JSONOperator.datetimeOperator cannot have a default value.

      OneOf input field JSONOperator.numericOperator cannot have a default value.

      OneOf input field JSONOperator.stringOperator cannot have a default value.
  ❯ Generate to ./src/
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ OneOf input field JSONOperator.datetimeOperator cannot have a default value.

      OneOf input field JSONOperator.numericOperator cannot have a default value.

      OneOf input field JSONOperator.stringOperator cannot have a default value.

Copilot tells me that this is indeed correct that OneOf is not allowed default values. The issue can be seen from

input JSONOperator @oneOf {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions