Searching in a nested array
Posted by: Karl Hörnell
Date: February 07, 2021 04:02PM

Perhaps this belongs in the newbie forum. I couldn't find any documentation about a particular search case. Suppose I have a collection "scifi_lovers" of documents in this format:

{
"firstname":"John",
"lastname":"Smith",
"books":[
{"title":"Dune", "author":"Frank Herbert"},
{"title":"Fahrenheit 451". "author":"Ray Bradbury"}
]
}

How would I use X DevAPI to find documents where the "books" array contains a specific title?

Options: ReplyQuote


Subject
Views
Written By
Posted
Searching in a nested array
65
February 07, 2021 04:02PM
34
February 24, 2021 06:49AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.