Databases
Databases( [database] )
Description
The Databases
function, when executed with Paginate
, returns
an Array of References for child databases in the specified
child database
. If a child database
is not specified, the returned
child database references all belong to the current database.
The Databases
function only reports child databases, so finding a
database using this function requires you to use an admin key for the
current database (a server or client key cannot be used to access any
child database).
Examples
-
The following query lists the References for any child databases (up to the pagination limit) within the current database:
{ data: [ Database("prydain"), Database("child_db") ] }
-
The following query lists the References for any child databases (up to the pagination limit) within a child database named "child_db":
{ data: [] }
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!