U
U
Urukhayy2017-08-11 07:47:40
MongoDB
Urukhayy, 2017-08-11 07:47:40

How to build a mongo query?

Node.
There is a collection, in each document of which there is an array of the form:

humans: [
      {
           name: "vasya",
           info: {
                 age: 18,
                 street: "street"
            }
      }
]

There can be many such objects in an array. How to extract the maximum age from a collection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Smich, 2017-08-11
@SciTec

I think there is something similar :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question