RBAC custom condition with relation in V4

Hi, do you know how you’d write the “query” in case your Company relation contained multiple different entities (companies)?

You could use $elemMatch:
e.g.:

{ 
  companies: {
    $elemMatch: {
      name: {
        $eq: "CompanyA",
      }
    }
  }
}