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