AccessProviders
|
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
AccessProviders( [database] )
access_providers( [database] )
AccessProviders( )
ScopedAccessProviders( [database] )
AccessProviders( [database] )
AccessProviders( [database] )
AccessProviders( [database] )
Description
The AccessProviders function, when executed with Paginate, returns
the set of References for all AccessProviders in the specified child
database. If a child database is not specified, the returned index
references all belong to the current database.
|
When a child Also, Go does not support optional function parameters, nor function
overloading. To specify a child |
Parameters
| Parameter | Type | Definition and Requirements |
|---|---|---|
|
Reference |
Optional - A Reference to a child database. If not specified, the current database is used. A Reference to a child database. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. Optional - A Reference to a child database. If not specified, the current database is used. |
Returns
A Set Reference for the available AccessProviders in the specified
child database (or the current database if database is not
specified).
Examples
-
The following query gets the references to all AccessProviders in the current database:
{ data: [ AccessProvider("Auth0-myapp") ] }{'data': [Ref(id=Auth0-myapp, collection=Ref(id=access_providers))]}map[data:[{Auth0-myapp 0xc0001084e0 0xc0001084e0 <nil>}]]ObjectV(data: Arr(RefV(id = "Auth0-myapp", collection = RefV(id = "access_providers")))){data: [ref(id = "Auth0-myapp", collection = ref(id = "access_providers"))]}{ data: [ AccessProvider("Auth0-myapp") ] } -
The following query demonstrates what happens when no AccessProviders exist:
{ data: [] }{'data': []}map[data:[]]ObjectV(data: Arr()){data: []}{ data: [] } -
The following query lists the References for any AccessProviders (up to the pagination limit) within a child database named "child_db":
{ data: [] }{'data': []}map[data:[]]ObjectV(data: Arr()){data: []}{ data: [] }