Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Allow updating of a primary key #1575

Description

@eemmiillyy

Describe the bug

Related: https://github.com/xataio/frontend-next/issues/3761

Currently it is not possible to update the primary key/xata_id on next branch, however it is possible via SQL. We should change our API to allow this.

Potential ways to fix:

  1. We could send a new flag/param to control whether the primary key value should removed from update payload if supplied.
  2. We could simply stop removing the value when the call is sent with the first param as the primary key and the second param as an object that contains a new value for this field
  3. ?

To Reproduce

Expected behavior

Software version

Additional context

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions