Open
Description
Even though Supabase supports upsert, the mutation is not available from GraphQL
Steps to reproduce the behavior:
- Create the GraphiQL page against your project using the code here: GraphiQL for self-documenting GraphQL supabase#6144
- In the Documentation explorer, check any table's available mutations
- Mutation.deleteFrom[TableName]Collection, Mutation.insertInto[TableName]Collection, and Mutation.update[TableName]Collection are available, but Mutation.upsertInto[TableName]Collection is not
Expected behavior
Would expect to see a Mutation.upsertInto[TableName]Collection operation that would allow a constraint name to be used, or alternatively insertInto[TableName]Collection could have onConflict support as in Hasura: https://hasura.io/docs/latest/graphql/core/databases/postgres/mutations/upsert/
Versions:
- PostgreSQL: [14.1]
- pg_graphql v0.3.2