Skip to content

patching multiple properties on a jsonb field only sets last property #865

@thejuan

Description

@thejuan

Entity .query() .patch({"data:field1":1, "data:field2":2}) .where("id", 5) .returning("*")

Only one of the fields on the jsonb is updated.
I would expect it to have translated to

set data = data || jsonb '{field1:1, field2:2}'

Is there anyway to tell objection.js to use concat?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions