'how to get child documents in prisma orm?
I need to get the ancestor's child documents. the ancestor has IDs and employees (the IDs of the documents that need to be obtained are stored here), a tree of documents should be obtained.
I looked at an example of how this can be implemented on the official mongodb website, but I didn't find anything like this in prisma orm: https://www.mongodb.com/docs/manual/tutorial/model-tree-structures-with-child-references/
database structure:enter image description here
UP!
current code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
