ToArray
Not available in this language yet.
Not available in this language yet.
ToArray( object )
ToArray( object )
Not available in this language yet.
ToArray( object )
Examples
The following query uses ToArray
to convert an object into an array:
Not available in this language yet.
Not available in this language yet.
System.out.println(
client.query(
ToArray(
Obj("name", Value("Dennis"), "age", Value(37))
)
).get());
[["name", "Dennis"], ["age", 37]]
client.query(
q.ToArray({ name: 'Dennis', age: 37 })
)
.then((ret) => console.log(ret))
[ [ 'name', 'Dennis' ], [ 'age', 37 ] ]
Not available in this language yet.
println(Await.result(
client.query(
ToArray(
Obj("name" -> "Dennis", "age" -> 37)
)
),
5.seconds
))
[["name", "Dennis"], ["age", 37]]
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!