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>')

Hope it helps.

Options: ReplyQuote

Written By
February 07, 2021 04:02PM
Re: Searching in a nested array
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.