Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I see. Is there an easy way to convert "[{votes: 5, id: 1}, {votes: 15, id: 1}, {votes: 25, id: 2}]" into a correct array, as it seems UNNEST doesn't accept list of objects? Commented May 5, 2016 at 15:12
  • It seems as if I'm not allowed to map the array for returning tuples: my_array = my_array.map(function(e) { return tuple(e.votes, e.id); }) Commented May 5, 2016 at 15:22
  • Did you ever figure out how to solve your problem with the tuples in JS? Commented Jan 12, 2022 at 9:41