This operation should be idempotent - adding the same relation twice should succeed without error (either by using INSERT IGNORE or catching unique constraint violations).
Get all relation tuples for a user in a specific namespace.
Get all relation tuples for a user in a specific namespace.
This is the primary query for permission checking - fetches all relations the user has within a namespace, which are then evaluated by PermissionLogic.
Value parameters
namespace
The resource namespace to filter by
userId
The user ID
Attributes
Returns
Task[Set[RelationTuple]] - Set of all relation tuples for the user in namespace