-
Notifications
You must be signed in to change notification settings - Fork 52
-
Notifications
You must be signed in to change notification settings - Fork 52
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
BUG: .$push does not add variables to variable definitions on mutation #175
Comments
UPDATE: There is a bug where if you passed a false/falsy variable on a mutation it will not register the variable definition :coffin_dance: user.$push({ is_create_update_xero: false }) or user.$push({ is_create_update_xero: 0 }) that will create a query of query: "mutation UpdateUser($id: ID!, $user: UserInput!)..."
variables: { is_create_update_xero: false, id: '...', user: {...} } as you can see the Work around: |
As you can see in the image above:
The variable
is_create_update_xero
is not in the variable definitions of updateUser.Here is the code that I use:
Mutation Type Def
aaaaaaaand another weird thing about it is when i do this in another place on the app(authenticated page), it adds the variable definition for is_create_update_xero.
not sure if having an authenticated page changes anything.
Please help :(
The text was updated successfully, but these errors were encountered: