Re: Searching in a nested array
Posted by: Rui Quelhas
Date: February 24, 2021 06:49AM

Hi Karl,

I guess I already answered on Stack Overflow, but you can use the IN operator, like the following:

db.getCollection('scifi_lovers').find(':name in books[*].title')
.bind('name', '<the_title>')
.execute()


Hope it helps.

Options: ReplyQuote


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


Sorry, you can't reply to this topic. It has been closed.

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.