R
R
Roman Sopov2016-12-20 16:45:04
MongoDB
Roman Sopov, 2016-12-20 16:45:04

How to select the latest records of each type in Mongo?

Essence of a question: there is a collection with records (articles), each record has type and date. You must select one last record of each type.
Can this be done with one request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad_Fedorenko, 2016-12-20
@sopov

https://docs.mongodb.com/v3.2/reference/operator/a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question