Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required arguments with default values shouldn't be required in operation variables #71

Closed
3 tasks done
awinograd opened this issue Feb 23, 2024 · 0 comments · Fixed by #73
Closed
3 tasks done

Comments

@awinograd
Copy link

Describe the bug

input ContactPointInput {
  rank: Int! = 1
  value: String!
}

type Mutation {
    addContactPoint(contactPoint: [ContactPointInput!]!): Boolean!
}
        await client.request(
          graphql(
            `
              mutation TestMutation($contactPoint: [ContactPointInput!]!) {
                addContactPoint(contactPoint: $contactPoint)
              }
            `,
          ),
          {
            contactPoint: [
              {
                value: '5551235555',
              },
            ],
          },
        );
image

Reproduction

No response

gql.tada version

1.2.1

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant