I have a folder definition where there can be a pa...
# spicedb
g
I have a folder definition where there can be a parent relation to another folder. I don't have a root folder, so the top level folders (root folders) will not have a parent. Is there a way I can get all the folders that do not have a parent, or would that be too expensive performance wise. Am I better off making a virtual root folder that all top level folders will have as a parent? I'm not sure that this solution would even work, since I have permissions on the folder like move, view, ... that are linked to the permissions on the parent folder. This parent folder will not be connected in any way to the specific company what so ever, so I don't think this will work. Another option is that i have a
definition platform {}
that I can maybe add as the parent to root folders. So the definition of a folder will be:
Copy code
definition folder {
  parent: folder | platform
}
Any suggestions?