Guard 'id' will still add 'id' on update
FricoRico opened this issue · 1 comments
FricoRico commented
Hi Luca! Thanks for your development and commitment to vuex-easy-firestore
.
As pointed out in another ticket (#83) some fields are automatically when patching data. You've implemented guards and fillables to have more control over this behaviour.
I've added guard: ['id', 'updated_at', 'updated_by']
to my modules. Indeed upon updating the updated_at
and updated_by
will no longer be added. But it seems id
is still added by default. Is this a bug?
louisameline commented
Hello, that's how it works for now, as the id is used somewhere at some point. I managed to change this in a fork though, it wasn't too hard.