Function metadata
Creating and updating a function requires:
|
Solution
Set the data
field in a function:
{
ref: Function("create_post"),
ts: 1635293426560000,
name: 'create_post',
body: Query(Lambda(["title", "body", "author"], Create(Collection("posts"), {"data": {"title": Var("title"), "body": Var("body"), "author": Var("author")}}))),
data: { env: 'test' }
}
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!