'remove' in convex-ents patch not working
I'm reposting this from my old thread that didn't get any replies:
Creating many to many ents works (using add inside a patch), but remove doesn't work on both sides:
the other side also doesn't work which is - getX each item and remove [category_.id] in a patch call
this is the relevant part of the schema:
I'm not getting errors or anything, it just executes the mutation but the relevant categories_to_items document doesn't get deleted
5 Replies
Hey @hyperzone I meant to get to this but it slipped. Sounds like a bug!
I can reproduce the issue.
@hyperzone I published convex-ents version 0.4.3 with the fix, please upgrade and try again.
Thank you it is now working 🙂
@Michal Srb Also a question, right now if I run a mutation that creates a many:many edge between 'menu' and 'item' for example, then run it again with the same menu and item ids, it creates a new menu_to_items document. Shouldn't it be like 'there's already an edge between the item and the menu so don't do anything'?
Yes, that also sounds like a bug
Sorry for bumping this, but did it get fixed?
@hyperzone sorry I am out this week, will have a look on Sunday/Monday.
@hyperzone fixed in convex-ents@0.4.4