Databases
Databases( [database] )
Databases( [database] )
Databases( [database] )
Databases( [database] )
databases( [database] )
databases [database]
Databases( [database] )
Databases( [database] )
Examples
The query below retrieves the references to sub-databases within the current database.
curl https://db.fauna.com/ \
-u fnAChGwBacACAEZtRZFDXpyjIvq-sln34m-va4Km: \
-d '{ "paginate": { "databases": null } }'
client.Query(Paginate(Databases()));
System.out.println(client.query(Paginate(Databases())).get());
result, _ := client.Query(f.Paginate(f.Databases()))
fmt.Println(result)
client.query(Paginate(Databases()))
client.query(q.paginate(q.databases()))
$client.query do
paginate databases
end
client.query(Paginate(Databases()))
client.query(q.Paginate(q.Databases()))
.then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": [{ "@ref": "databases/prydain" }] }
[{ "@ref": "databases/prydain" }]
[ref(id = "prydain", collection = ref(id = "databases"))]
[{prydain 0xc420316a60 <nil>}]
[{ "@ref": "databases/prydain" }]
[{ "@ref": "databases/prydain" }]
[{ "@ref": "databases/prydain" }]
[{ "@ref": "databases/prydain" }]
[Ref(id=prydain, collection=Ref(id=databases))]
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!