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'm trying to understand without digging deeply what exactly following method returns:
this.$store.$db().model("someModel").all()
I would expect as based on familiarity with Redux that this will be pure object literal only with properties based on model. But it is not the case it actually returns even these properties:
{
$id: '1',
$isPresitant: false,
$self: ...
...
}
Somewhere else we define model.
class SomeModel extends Model { }
So looks to me like instance of SomeModel. Which is fine as it can be sanitized for example by remaping properties.
But I really wonder that I haven't found yet more sophisticated solution which incorporated directly to VuexORM or do I missing something?
The text was updated successfully, but these errors were encountered:
creaux
changed the title
method .all() returns not pure literal object from database (store)
method .all() not returns pure literal object from database (store)
Apr 17, 2021
I'm trying to understand without digging deeply what exactly following method returns:
this.$store.$db().model("someModel").all()
I would expect as based on familiarity with Redux that this will be pure object literal only with properties based on model. But it is not the case it actually returns even these properties:
Somewhere else we define model.
So looks to me like instance of
SomeModel
. Which is fine as it can be sanitized for example by remaping properties.But I really wonder that I haven't found yet more sophisticated solution which incorporated directly to VuexORM or do I missing something?
The text was updated successfully, but these errors were encountered: