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

'MutationOptions' object has no attribute 'exclude' error when executing authorizationKeyAdd with empty strings #3089

Closed
dominik-zeglen opened this issue Oct 10, 2018 · 1 comment
Labels
graphql Issues related to the GraphQL API

Comments

@dominik-zeglen
Copy link
Contributor

What I'm trying to achieve

To execute authorizationKeyAdd mutation with empty strings.

Steps to reproduce the problem

  1. Execute the following query:
mutation AuthorizationKeyAdd($input: AuthorizationKeyInput!, $keyType: AuthorizationKeyType!) {
  authorizationKeyAdd(input: $input, keyType: $keyType) {
    errors {
      field
      message
    }
  }
}

where variables are:

{
  "input": {
    "key": "",
    "password": ""
  },
  "keyType": "GOOGLE_OAUTH2"
}
  1. Get this error:
{"errors":[{"message":"'MutationOptions' object has no attribute 'exclude'","locations":[{"line":17,"column":3}],"path":["authorizationKeyAdd"]}],"data":{"authorizationKeyAdd":null}}

What I expected to happen

To get the errors object.

@dominik-zeglen dominik-zeglen added the graphql Issues related to the GraphQL API label Oct 10, 2018
@maarcingebala
Copy link
Member

We should rather change both input fields to be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql Issues related to the GraphQL API
Projects
None yet
Development

No branches or pull requests

2 participants