Matthew Ebeweber
09/30/2022, 2:57 PMsome: {
 connection: { id: R.id, user: P.id }
}Matthew Ebeweber
09/30/2022, 2:59 PMR.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)
Alex 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 resourceAlex Olivier (Cerbos)
Matthew Ebeweber
09/30/2022, 3:20 PMMatthew Ebeweber
09/30/2022, 3:23 PM/list view and a /list/:id where I use the query planner for /list but want to check the resource on /list/:idAlex Olivier (Cerbos)
/list and the query plan
one for ‘view’ which is used on /list/:idAlex Olivier (Cerbos)
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 PMMatthew Ebeweber
09/30/2022, 3:32 PMMatthew Ebeweber
09/30/2022, 3:33 PMAlex Olivier (Cerbos)
Matthew Ebeweber
09/30/2022, 3:35 PMMatthew Ebeweber
09/30/2022, 3:35 PMMatthew Ebeweber
10/03/2022, 8:06 PMwhere: { join_1: { join_2: { some: { field: thing } } } }Alex Olivier (Cerbos)
Matthew Ebeweber
10/03/2022, 8:11 PMAlex Olivier (Cerbos)
Alex Olivier (Cerbos)