You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using a mutator setting null, while it fixes the retrieving, it doesn't solve the insertion
I also tried using user_id: this.uid(() => null), but it causes a different issue where the created $id is null (ignoring the fact that it's a composite key) if the value of that key is null
The text was updated successfully, but these errors were encountered:
Describe the bug
When inserting models with composite primary keys, if one of the keys is null, it's inserted with "$uid123" instead of the null value
Steps to reproduce the bug
["1","$uid1"]
Expected behaviour
The models to be inserted with the
$id
containing null values and not$uid1
Like this:
["1",null]
Versions
Link to minimal reproduction
https://codesandbox.io/s/vuex-orm-crud-sample-forked-qyc8u?file=/src/post.js
Additional context
I tried using a mutator setting null, while it fixes the retrieving, it doesn't solve the insertion
I also tried using
user_id: this.uid(() => null),
but it causes a different issue where the created $id isnull
(ignoring the fact that it's a composite key) if the value of that key isnull
The text was updated successfully, but these errors were encountered: