Role.byName()
Get a role by its name.
Examples
{
name: "humanResources",
coll: Role,
ts: Time("2023-07-21T00:22:25.260Z"),
privileges: {
resource: "People",
actions: {
read: true,
create: "data => data.status == \'active\' "
}
}
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!