We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when id type is string, it shows NaN after persist
i have this model
import { Model as ORMModel } from '@vuex-orm/core' import Model from './Model' export default class Make extends ORMModel { static entity = 'makes' static eagerLoad = ['models'] static fields() { return { id: this.string(), name: this.string(null).nullable(), active: this.boolean(true), models: this.hasMany(Model, 'makeId') } } }
I use fireorm as database and everytime the model transform and inserted in vuex-orm store. it shows NaN. see console.log output:
Should allow id as string type and save correct id value.
The text was updated successfully, but these errors were encountered:
I think it because of toPrimaryKey method which used on id from server response.
toPrimaryKey
See my issue: #173
Sorry, something went wrong.
so I ended up creating a path file for plugin-graphql and remove the Guid formatting and leave it just a string.
No branches or pull requests
Describe the bug
when id type is string, it shows NaN after persist
Steps to reproduce the bug
i have this model
I use fireorm as database and everytime the model transform and inserted in vuex-orm store. it shows NaN. see console.log output:
Expected behaviour
Should allow id as string type and save correct id value.
Versions
The text was updated successfully, but these errors were encountered: