Skip to content

method .all() not returns pure literal object from database (store)  #177

Open
@creaux

Description

@creaux

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions