Drizzle Relations

Can any one help me to do this? like, we have a tweets so, each tweets have parent id/uuid, and author id/uuid. normally as we can see a tweet have lot's of children as children tweet which is belong on parent tweet. so, please help me make this with pg-core. i just face confusing in children tweet and parent tweet, how can i make a array of tweet which will belong on main tweet i mean parent tweet?
3 Replies
Angelelz
Angelelz12mo ago
This is the use case for recursive CTEs There is currently no first class support for it in drizzle, so you'll have to write it manually
Sabbir Hossain Shuvo
@Angelelz should i share my github repo??
Angelelz
Angelelz12mo ago
I don't think that's necessary Do you want a list of direct children or a chain of children of children...?
Want results from more Discord servers?
Add your server