0

I am using Hasura GraphQL engine. How can I go about handling multiple constraint violations?

Say I have two constraints, [my_first_constraint, my_second_constraint]

on_conflict: {
    constraint: my_first_constraint,
    update_columns: [updated_at]
}

Works for my_first_constraint violations but then errors out when my_second_constraint conflicts during an upsert.

I have defined some columns in unique keys. When we defined the on_conflict on the unique key constraint, the primary key constraint started giving errors. The primary key is the auto-increment number.

Vishal Jangid
  • 358
  • 1
  • 10

0 Answers0