ToArray
ToArray( object )
Not available in this language yet.
Not available in this language yet.
ToArray( object )
Not available in this language yet.
Not available in this language yet.
ToArray( object )
Not available in this language yet.
Examples
The following query uses ToArray
to convert an object into an array:
System.out.println(
client.query(
ToArray(
Obj("name", Value("Dennis"), "age", Value(37))
)
).get());
Not available in this language yet.
Not available in this language yet.
client.query(
q.ToArray({ name: 'Dennis', age: 37 })
)
.then((ret) => console.log(ret))
Not available in this language yet.
Not available in this language yet.
println(Await.result(
client.query(
ToArray(
Obj("name" -> "Dennis", "age" -> 37)
)
),
5.seconds
))
Not available in this language yet.
[["name", "Dennis"], ["age", 37]]
[ [ 'name', 'Dennis' ], [ 'age', 37 ] ]
[["name", "Dennis"], ["age", 37]]
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!