persistBy: "create" not deleteAll data on relation
See original GitHub issueHello
I found bug with { persistBy: “create” } the item relation is not clear or deleteAll() before/after call order.api()
please review this bug from codesanbox https://codesandbox.io/s/vuex-orm-relation-test-h6xmb?file=/src/App.vue
** item is exists after call order.api() **
await Order.api().get("/orders.json", {
persistBy: "create",
persistOptions: {
create: ["merchant_item"]
}
});
or
await Order.api().get("/orders.json", {
persistBy: "create",
});
I thank when set “persistBy: “create”,” or persistOptions deleteALl() any data on relations so will be correct
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
JPA , many-to-many relation, deleting all previous relations ...
I might be wrong but I think this is normal that when you're making your insertions, Hibernate firsts deletes all the records from...
Read more >Solved: Cannot delete an entity relationship
Solved: I wanted to delete an entity relationship 1:N, but I kept getting the same message saying = there are dependencies...you cannot delete...
Read more >Clear browsing data - Computer - Google Chrome Help
You can control your history and other browsing data, like saved form entries. You can delete all of your data or just some...
Read more >Delete all data in Postgres database - DBA Stack Exchange
If you then create the SQL dump including the create table statements (so without the --data-only option) everything should be fine.
Read more >DELETE command - HighBond
To delete all record notes, and the auto-generated RecordNote field, ... The data file (.fil) associated with the table layout is not deleted...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There will be support for this feature in the next iteration of Vuex ORM. For the time being you may have to resort to the more verbose approach.
I think action only catch because save() return PromiseValue is undefined
console.log( orders.save() )