Skip to content

toPrimaryKey broke ObjectId from MongoDB #173

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?!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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