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

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -