Rethinkdb - Get first item of an array
Asked Answered
N

1

7

My data structure

    {
      "group": "fruits"
      "items": ["apple", "orange", "banana"]
    }

I need to pull first item from the "items" array without knowing the value. Is it possible?

Nave answered 25/5, 2015 at 9:35 Comment(0)
N
10

I think I figured out the answer. I can use "nth(0)" to get item at index 0.

Nave answered 25/5, 2015 at 9:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.