recursive queries #109
Unanswered
fredericrous
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Do you know what the depth will be? |
Beta Was this translation helpful? Give feedback.
1 reply
-
In the Intro to Relationships docs it says:
But for self-referential tables the typical use-case is usually for a parent/child relationship so I was hoping to see an api like |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am storing a tree in tinybase.
Example (click me)
:basically, to know if a node is attached to a parent node, I have a parentId column. I also put a foreign key on.
now I want to do like a recursive query to build my tree in the form
I wonder how a recursive query would look like in tinybase. Here is an example in sql (see example 5) https://learnsql.com/blog/query-parent-child-tree/
Beta Was this translation helpful? Give feedback.
All reactions