Skip to content

Upsert support #190

Description

@TSIA-SN

Even though Supabase supports upsert, the mutation is not available from GraphQL

Steps to reproduce the behavior:

  1. Create the GraphiQL page against your project using the code here: GraphiQL for self-documenting GraphQL supabase#6144
  2. In the Documentation explorer, check any table's available mutations
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions