List all child databases
Reading or writing database documents requires an admin key. |
Solution
ObjectV(data: Arr(RefV(id = "prydain", collection = RefV(id = "databases")), RefV(id = "child_db", collection = RefV(id = "databases")), RefV(id = "annuvin", collection = RefV(id = "databases"))))
map[data:[{prydain 0xc0000924b0 0xc0000924b0 <nil>} {child_db 0xc0000925a0 0xc0000925a0 <nil>} {annuvin 0xc000092690 0xc000092690 <nil>}]]
{data: [ref(id = "prydain", collection = ref(id = "databases")), ref(id = "child_db", collection = ref(id = "databases")), ref(id = "annuvin", collection = ref(id = "databases"))]}
{
data: [ Database("prydain"), Database("child_db"), Database("annuvin") ]
}
{'data': [Ref(id=prydain, collection=Ref(id=databases)), Ref(id=child_db, collection=Ref(id=databases)), Ref(id=annuvin, collection=Ref(id=databases))]}
{
data: [ Database("prydain"), Database("child_db"), Database("annuvin") ]
}
Discussion
The Paginate
function defaults to returning up to 64 databases per
page. If your database contains more than 64 databases, you can use the
size
parameter to retrieve up to 100,000 databases at once.
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!