M
M
Maxwi2019-03-29 19:03:29
Python
Maxwi, 2019-03-29 19:03:29

How to get a value that is in multiple arrays (Pymongo)?

5c9e41863253d383120253.png
Need to get '18:00' from 'time_to_receive', preferably using the find method

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxwi, 2019-03-29
@Maxwi

Everything is resolved like this

mycol.find({ "time_to_receive.0": { '$elemMatch': {'$eq': '18:00'}}})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question