Vishal Lohar
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
There will be no need of helper tables
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
I can also schedule the query inside the delete screen mutation to remove all the references
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Yes.
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
And use some extra tables like you suggested to schedule the deletion of referenced id
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
This can work too. I will just replace my getAllOrThrow method and filter null values
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Anyway, I got the idea how to do this. Thanks
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
I was just trying to find a way. SInce i already wrote the code and now i am just shifting to ents
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Yes. I understand.
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Its a clone of mobbin.com
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
The app is very complex
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
No, It will throw an error if the screen doesn't exist
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Okay. So will it remove the reference from the array
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
[screen1, screen2]. Screen1 get deleted then remove screen 1 from array
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
If its a array just remove the reference
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Yes
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
I know that, If I make an edge it will delete the doc even if its an array. But what If I just want to remove the related doc's id?
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
@ampp In Supabase, When a related doc is deleted, the id of that doc is removed from the array instead of deleting that doc. Is this possible in convex
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
The entire doc is deleted or just the deleted screen id is removed from the array
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
Also, What if I add a field that stores an array of related screen IDs? And one of the screens was deleted. What happens then?
40 replies
CCConvex Community
•Created by Vishal Lohar on 10/4/2024 in #support-community
Convex Ents Cascading Delete not working
What can I do here?
40 replies