Skip to content

$update function does not work with composite primaryKey #455

@lucasbiguet

Description

@lucasbiguet

Calling $update on an object with a composite primary key triggers an error in console:

You can't specify where value as string or number when you
have a composite key defined in your model. Please include composite
keys to the data fields.

See this code sandbox that reproduces the problem:

Edit vuex-orm relation sample

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleasedThe issue was implemented and it is released publicly

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions