ToObject
ToObject( array )
ToObject( array )
ToObject( array )
ToObject( array )
to_object( array )
ToObject( array )
Returns
An Object composed of the fields names and values from array
.
Examples
The following query converts an array into an object:
ObjectV(name: StringV(Dennis),age: LongV(37))
map[age:37 name:Dennis]
{name: "Dennis", age: 37}
{ name: 'Dennis', age: 37 }
{'name': 'Dennis', 'age': 37}
{ 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!