Matthew Ebeweber
09/30/2022, 2:57 PMsome: {
connection: { id: R.id, user: P.id }
}
R.attr.hasConnection: true
or whatever and does additional mapping to what's expected.
But wondering if the fieldNameMapper
could benefit from non string -> string mappingAlex Olivier (Cerbos)
Matthew Ebeweber
09/30/2022, 3:13 PMownedBy
becomes really large, aren't you still potentially passing a lot of extra information into the checkResource
calls? Where as the information you might care about is "is the principal an owner?"Alex Olivier (Cerbos)
isOwner
boolean as an attribute on the resourceMatthew Ebeweber
09/30/2022, 3:20 PM/list
view and a /list/:id
where I use the query planner for /list
but want to check the resource on /list/:id
Alex Olivier (Cerbos)
/list
and the query plan
one for ‘view’ which is used on /list/:id
owner
field - the first case it would be something like P.id in R.attr.owners
used to model the relation, in the 2nd it would just be a booleanMatthew Ebeweber
09/30/2022, 3:29 PMAlex Olivier (Cerbos)
Matthew Ebeweber
09/30/2022, 3:32 PMAlex Olivier (Cerbos)
Matthew Ebeweber
09/30/2022, 3:35 PMwhere: { join_1: { join_2: { some: { field: thing } } } }
Alex Olivier (Cerbos)
Matthew Ebeweber
10/03/2022, 8:11 PMAlex Olivier (Cerbos)