Var
Copied!
Var( name )
Examples
The query below defines two variables in a Let statement. The first variable "x" contains the value 1 and the second variable "y" contains the value 2. When the simple "in" expression is executed, it returns the value stored in the variable "x".
Copied!
client.query(
q.Let({ x: 1, y: 2 }, q.Var('x'))
)
.then((ret) => console.log(ret))
1
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!