-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
discussionenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
Hi! thank you for awesome library!
I found below bug.
When deleted the data in backend, plugin-graphql doesn't remove data from Vuex store on secondary fetch.
Reproduce step
As there is a Item model(GraphQL)
- In frontend,
Item.fetch({}, true) - In frontend,
Item.query().all(). At this time Items count is 5. - In backend, delete one Items randomlly. Items count is 4 in DB.
- In frontend,
Items.fetch({}, true). - In frontend,
Items.query().all(). At this tiem Items count is 5!!. I expect 4 😰
But Vuex-ORM's console log is below.
Inserted 4 records.
Vuex-ORM: GraphQL Plugin Inserting Vuex-ORM: GraphQL Plugin Inserting
records (4) [{…}, {…}, {…}, {…}]
In vuex store state, state["entities"].items.data has 5 records.
Metadata
Metadata
Assignees
Labels
discussionenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed