Roles
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
Roles( [database] )
Description
The Roles
function, when executed with Paginate
, returns
an Array of References for user-defined roles in the specified
child database
. If a child database
is not specified, the role
references returned all belong to the current database.
Parameters
Parameter | Type | Definition and requirements |
---|---|---|
|
Reference |
Optional - A Reference to a child database. If not specified, the current database is used. |
Returns
An Set Reference for the available user-defined roles in the
specified child database
(or the current database if database
is not
specified).
Examples
-
The following query lists any user-defined roles (up to the pagination limit) in the current database:
{ data: [ Role("employees") ] }
-
The following query lists the References for any user-defined roles (up to the pagination limit) in a child database named "child_db":
{ data: [] }