Skip to content

[JSON:API Atomic Operations] Support lid #948

Open

Description

@SafaAlfulaij

When dealing with atomic operations, updating local records (added in the operation) requires the lid for the backend to understand what to update.

if (resourceId !== undefined) {
resource.id = resourceId;
}

The fix is as simple as this:

 if (resourceId !== undefined) {
   resource.id = resourceId;
 } else {
   resource.lid = id
}

But needs a bit of testing and checking if JSON:API allows having lid for all requests (atomic and non-atomic) or not.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions