Skip to content

Connector does not support empty update #339

Closed
@hvlawren

Description

@hvlawren

Description/Steps to reproduce

run patchAttributes on a model and provide an empty object as the payload, e.g.

PATCH /api/users/1 {}

Expected result

200 or 204, no error thrown

Actual result

500 thrown, connector sends invalid SQL to the DB, e.g.

UPDATE "public"."assettype" SET WHERE "id"=931;

Additional information

darwin x64 8.11.1

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