Role
Learn: Roles |
---|
We recommend you use FSL to create and update user-defined roles. See Role schema. |
Fauna stores user-defined roles as documents in the Role
system collection.
These documents act as an FQL version of the FSL role schema. See Role document definition..
You can use the following methods to handle roles in FQL.
Static methods
Method | Description |
---|---|
Get the set of all roles. |
|
Get a role by its name. |
|
Create a role. |
|
Get the first role matching a predicate function. |
|
Get the name of the Role collection as a string. |
|
Get roles matching a predicate function. |
Instance methods
Method | Description |
---|---|
Delete a role. |
|
Tests if a role exists. |
|
Replace a role. |
|
Update a role. |
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!