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

Schema does not allow optional arguments #202

Open
vorpus opened this issue Jun 26, 2020 · 0 comments
Open

Schema does not allow optional arguments #202

vorpus opened this issue Jun 26, 2020 · 0 comments

Comments

@vorpus
Copy link

vorpus commented Jun 26, 2020

I have a custom mutation with the signature
editPerson(personId: Int!, username: String, title: String, email: String): Person

When I attempt to call this

gql`
   mutation ($personId: Int!, $value: String!) {
    editPerson(personId: $personId, username: $value) {
       name
     }
   }`

It throws GraphQL error: Failed to invoke procedure apoc.cypher.doIt: Caused by: org.neo4j.exceptions.ParameterNotFoundException: Expected parameter(s): title, email

This should be allowed since only personId is required?

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

No branches or pull requests

1 participant