python - Get array items inside a mongodb document -


i have kind of document:

for _id, want events "events.time" > time1 (and these ones):

{     "_id": ...,     "events": [         {"time": 345678, "value": "1"},         {"time": 567890, "value": "2"},         ...     ] } 

how can ? there easy way extract data array inside mongodb document ? (i use python 2.7 , mongod v2.2.4)

thanks answers

the best solution in case seemed choose schema database. created separate event collection...


Comments

Popular posts from this blog

Pull out data related to my apps from Android Play Store and iOS App Store -

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -