Course lesson
Accessing fields through Refs with Select
Refs are opaque. To access the fields on a document associated with a Ref, we first need to run Get on our results and then we can access fields using Select
- Duration
- 1 min
- Access
- Free
- Transcript
- Available
Refs are opaque. To access the fields on a document associated with a Ref, we first need to run Get on our results and then we can access fields using Select
Map(
Paginate(Match(Index("all_customers"))),
Lambda("X", Get(Var("X")))
)Map(
Paginate(Match(Index("all_customers"))),
Lambda("X", Select(["data", "firstName"], Get(Var("X"))))
)