FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
List all functions
Reading or writing database documents requires an admin key. |
Solution
{
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))]}
map[data:[{increment 0xc0000924b0 0xc0000924b0 <nil>} {double 0xc0000925a0 0xc0000925a0 <nil>} {submit_order 0xc000092690 0xc000092690 <nil>} {create_post 0xc000092780 0xc000092780 <nil>}]]
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"))))
{
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!