-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
Describe the bug
Hasura's on_conflict
argument expect enums to be provided without quotes, however gotql does use quotes for every argument value. This result in an error (see screenshots).
To Reproduce
gotQl.mutation(
process.env.GRAPHQL_HOST,
{
operation: {
name: 'insert_example',
args: {
objects: {id, status, price},
on_conflict: {constraint: 'example_pkey', update_columns: ['status', 'price']},
},
fields: ['affected_rows'],
}
},
)
Current behavior
Part of the query:
on_conflict: {constraint: \"example_pkey\", update_columns: [\"status\", \"price\"]}
Expected behavior
Part of the query:
on_conflict: {constraint: example_pkey, update_columns: [status, price]}