samedi 24 août 2019

Use Mongodb query to find random document in nested field

I'm trying to get a random document from a nested field of addresses. I've read the post here already:

Random record from MongoDB

The addresses are a subfield of the properties field like so:

{"properties" : {"Address" : "1234 MAIN ST"}}

I'm looking forward to the answer.




Aucun commentaire:

Enregistrer un commentaire