Hey everyone! Quick (I hope) question and potentia...
# spicedb
w
Hey everyone! Quick (I hope) question and potentially a bit naive. I've got a use case where users have access to something like a folder, and inside a folder could be different types of things. My schema is setup so that "sub-thing" object has a parent relation that can be a folder. This works great for checking permissions, but I'm wondering how I should approach getting everything inside of that folder. I.e. when a user goes to look in a folder and I want to return all of the stuff that is in there. Is there some kind of "getChildren" function I could execute on the folder given an ID (lookupSubjects and lookupResources don't seem to fit) or should I just store these relations in my non-spice metadata database? Thanks!