plugin-graphql icon indicating copy to clipboard operation
plugin-graphql copied to clipboard

Many To Many with string based IDs

Open smakman opened this issue 4 years ago • 1 comments

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?

smakman avatar Apr 16 '20 19:04 smakman

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

phortx avatar May 02 '20 20:05 phortx