Skip to content
New issue

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

Many To Many with string based IDs #144

Open
smakman opened this issue Apr 16, 2020 · 1 comment
Open

Many To Many with string based IDs #144

smakman opened this issue Apr 16, 2020 · 1 comment

Comments

@smakman
Copy link

smakman commented Apr 16, 2020

When following the Many To Many example in the docs:
https://vuex-orm.github.io/plugin-graphql/guide/relationships.html#many-to-many

I get the following error when using string based IDs:

TypeError: Cannot read property 'hasIncrementFields' of undefined

Only thing I changed on the User model is:

id: this.attr(null) // instead of this.increment()

Is there a way to get Many To Many work with string based IDs?

@phortx
Copy link
Collaborator

phortx commented May 2, 2020

Could you check if this is still an issue with the latest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants