how to perform a recursive query on firbase with kotlin
Im building an app to learn firebase and kotlin. in this app users are able to submit text as a child element of another submission. The depth could be infinite. Like millions. I figured the best way to structure the database for the text submissions would be like this:
collection |-> doc_id |-> title
| |-> text
| |-> doc_id_of_parent
|
|-> doc_id |-> title
| |-> text
|->...