You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: .$push does not add variables to variable definitions on mutation #175
updateUser(id: ID!,user: UserInput,is_create_update_xero: Boolean): User
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 :(
as you can see the $is_create_update_xero: Boolean! is missing in the variable definition in the query.
Without the variable definition, the back end won't be able to receive the is_create_update_xero
Work around:
I just passed a "false" string: user.$push({ is_create_update_xero: 'false' }) , it looks reallyyy bad
but that's the only workaround I could think of
changed the title [-].$push does not add variables to variable definitions on mutation[/-][+]BUG: .$push does not add variables to variable definitions on mutation[/+]on Mar 4, 2021
Activity
kempsteven commentedon Mar 4, 2021
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:
Example:
that will create a query of
as you can see the
$is_create_update_xero: Boolean!is missing in the variable definition in the query.Without the variable definition, the back end won't be able to receive the
is_create_update_xeroWork around:
I just passed a "false" string: user.$push({ is_create_update_xero: 'false' }) , it looks reallyyy bad
but that's the only workaround I could think of
[-].$push does not add variables to variable definitions on mutation[/-][+]BUG: .$push does not add variables to variable definitions on mutation[/+]