prehistoric-boots-58621
07/13/2023, 1:16 PM{
"namespace": "User",
"object": "828aad92-439b-47d2-9bc6-3213fd8fe6a4",
"relation": "memberships",
"subject_set": {
"namespace": "Group",
"object": "bffd9223-d5ea-4cdf-9de4-273e60069ebb",
"relation": ""
}
}
how can I request all tuples which have:
namespace=User
subject_set.namespace=Group
while ignoring all other parameters?billions-leather-15882
08/14/2023, 4:51 PMprehistoric-boots-58621
09/21/2023, 12:21 PMbillions-leather-15882
09/22/2023, 7:01 AMbillions-leather-15882
09/22/2023, 7:16 AM$rs = Ory::relationship()->getRelationships(
null, // pagetoken
100, // pagesize
'Group', // relationship aka namaepace
null, // object (null because we want all groups)
'members', // relation
null,
'User',
$userId, // all groups where userid is this
'members',
);
So this lists all groups that user is member of.prehistoric-boots-58621
09/22/2023, 1:35 PMprehistoric-boots-58621
09/22/2023, 1:35 PM