Get a function document
Solution
Use the Get
function:
{
ref: Function("create_post"),
ts: 1624310578910000,
name: 'create_post',
body: Query(Lambda(["title", "body"], Create(Collection("posts"), {data: {title: Var("title"), body: Var("body")}})))
}
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!