code: async function findInheritedRoles (membershipModel, roleId) {
    const inherited = await membershipModel.find({
      where: {
        roleId: { equals: roleId },
        memberType: { equals: 'role' }
      }
    })
    return inherited.map(r => r.memberId)
  }
docs: findRole