Alsbury
10/24/2022, 9:45 PMJoey
10/24/2022, 9:56 PMsyebaurgh
10/24/2022, 11:12 PMdefinition subject {
relation viewer: user
permission view = viewer
}
definition resource {
relation subject: subject
permission view = subject->view
}
and you create multiple relationships between subject and resource through the resource subject
relation:
resource:r1#subject@subject:s1
resource:r1#subject@subject:s2
resource:r1#subject@subject:s3
subject:s1#viewer@user:u1
subject:s2#viewer@user:u1
syebaurgh
10/24/2022, 11:14 PMview
permission on the resource the user is a viewer
of all the subjects of the resource?syebaurgh
10/24/2022, 11:15 PMu1
should not have the view
permission on resource r1
syebaurgh
10/24/2022, 11:16 PMviewer
of subject s3
Joey
10/24/2022, 11:24 PMJoey
10/24/2022, 11:24 PMAlsbury
10/24/2022, 11:59 PMpj
10/25/2022, 9:10 AMJoey
10/25/2022, 2:25 PMsyebaurgh
10/25/2022, 7:02 PMWriteRelationships
fail partially? If so, do we end up in a situation where only some of the relationships are written or are all relationships not committed when there's a write error?Joey
10/25/2022, 7:15 PMJoey
10/25/2022, 7:15 PMJoey
10/25/2022, 7:15 PMJoey
10/25/2022, 7:15 PMJoey
10/25/2022, 7:18 PMsyebaurgh
10/25/2022, 7:19 PMJoey
10/25/2022, 7:21 PMJoey
10/25/2022, 7:21 PMJoey
10/25/2022, 7:22 PMsyebaurgh
10/25/2022, 7:22 PMsyebaurgh
10/25/2022, 7:34 PMJoey
10/25/2022, 7:35 PMJoey
10/25/2022, 7:35 PMGMG-Christine
10/26/2022, 10:35 AMtaras
10/26/2022, 11:52 AMzed relationship read
command, eg if i want to read in all relationshipsvroldanbet
10/26/2022, 3:13 PMGMG-Christine
10/26/2022, 3:13 PMJake
10/26/2022, 3:14 PM