Skip to content

Update existing pivot fields #71

@davecut

Description

@davecut

Description

Hello,

I was wondering how one can update a field of an already existing row in a pivot table using mutate.

I was using this body, but my request was considered as a new attach and it threw an error.

{
    "mutate": [
        {
            "operation": "update",
            "key": 1,
            "relations": {
                "posts": [
                    {
                        "operation": "update",
                        "key": 5,
                        "pivot": { "number": 20 }
                    },
                ]
            }
        }
    ]
}

Is there anything that can be done to achieve this pivot field update?

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions