Saving data into vuex coming from django-graphene backend.
See original GitHub issueHi,
First of all thank you for vuex-orm. For me is just a dream come true to be able to replicate a part of back-end data to front-end and using vuex-orm-graphql to be able to do int in one request. I think this is a amazing project.
Now i try to use vuex-orm-graphql plugin, and i have some issues in implementing it in my project. I am sending following query:
And i receive the following response:
Until this point all is as expected.
I would like to save a list of articles into store. Now i need somebody to point me in the right direction because everything that i had tried failed. My last “working” aka no errors saved in the store:
Also tried to create articleModel and articlesModel that has a many relation to articleModel. Failed. I do receive this in console:
Vuex-ORM: GraphQL Plugin Ignoring entity article because it's not in the schema.
I am doing something wrong and now i am out of ideas.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (1 by maintainers)
Top GitHub Comments
Thank you.
I also will continue this investigation further, right now i am hands deep in Transformer and in Store.insertData Up so far i have managed to get 10 records inserted in the store but they are not as expected
I will dig more into this. As a info for you am am using Facebook Relay specs because that is what my back-end follows. If i try to customise the output (that can be done) i am losing all the good stuff that is coming by default (first, last, cursor, etc. ), and i fell no joy in implementing them manually, if can be done.
I will try to provide a PR and maybe a fix for it. I am not that proficient in JS but i can try.
This is fixed by @WitteStier with #58 . Thank you very much!
I will release RC 17 now so you guys can test if this works for you.