Hey, a question: we are deadling with extremely large hierarchies, so instead of keeping everything inside SpiceDB, we want to only store some nodes and then perform a batch check to see "which nodes from this hierarchy path exist in the SpiceDB" before performing the permission check. What would be the best way to achieve this? The permission check API obviously will just return "no permission" for non-existent node, so we cannot really say whether it is because the node didn't exist, or because the permission is false'y. My current thinking is to use a ResourceLookup and filter nodes based on that, but that means we would also get nodes that are irrelevant for a single path (e.g. nodes could be spread horizontally and not that deep). Is there an option to force the permission check/bulk permission check to explicitly return "no permission" vs "resource identifier doesn't exist"?
I looked through docs, searched in Discord, checked protobuf specs and played around with
zed
, but I am not sure what would be the best approach here.