Skip to content

toPrimaryKey broke ObjectId from MongoDB #173

@Dotrox

Description

@Dotrox

When I get data from the server all ObjectId cuts because of this method.
For example "6018b21ff77a7f08047de270" become "6018"
And id: this.string() in vuex-orm models doesn't help!

return parseInt(input.toString(), 10);

Why the Hell there is parseInt without checking field type?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions