AccessProviders

Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
AccessProviders( )
Not available in this language yet.
Not available in this language yet.

Description

The AccessProviders function, when executed with Paginate, returns an array 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.

Parameters

None.

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:

Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
client.query(
  q.Paginate(q.AccessProviders())
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
{ data: [ AccessProvider("Auth0-myapp") ] }
Not available in this language yet.
Not available in this language yet.

The following query demonstrates what happens when no indexes exist:

Not available in this language yet.
Not available in this language yet.
Not available in this language yet.
client.query(
  q.Paginate(q.AccessProviders())
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
{ data: [] }
Not available in this language yet.
Not available in this language yet.

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums or email docs@fauna.com

Thank you for your feedback!