python - Pymongo Or Condition To Filter Queries -


So I'm having a slight problem that I'm going through mongoDB with pongo or using the status I am here. All looked at the same posts, but for some reason, I do not seem to be working. "{{" Tag ":" zombiegem "," meta.lolestate ":" NORMAL_MODE "," $ or ": [{" Meta.zombiesInLOS ": {' $ Gt ': 0}}, {"Meta.zombiesInSLOS": {' $ gt ': 0}}, {"Meta.helpersInLOS": {' $ Gt ': 0}}, {"Meta.helpersInSLOS": { 'Gt':}}}} goodShot01 = coll.find ({"tag": "zombiegem", "meta.lolestate": "NORMAL_MODE", "Meta.zombiesInLOS": {"$ gt": 0}} ) GoodShot02 = coll.find ({"tag": "zombiegame", "meta.llevestate": "NORMAL_MODE", "meta.jobs in SLOOS": {"$ Gt":}}) goodShot03 = coll.find ( {"Tag": "zombiegame", "meta.llevestate": "norm_modio", "meta halper inlos": {"$ gt":}}} GoodShot04 = coll.find ({"tag": "zombiegem" , "Meta Levels Tate ":" General Mog "," Meta. Holler in SLOS ": {" $ gt ":}}

The first query, 'Good Shops', is technically all those questions Technically back, all the other conditions in the 'good shirt 01-04', however, it gives 0. 'GoodShot01-04' returns a calculation> 0 though.

If I include 4 documents such as

  {"tag": "zombiegem", "meta": {"Levelstate": "NORMAL_MODE", "zombiesInLOS": 1}}  

4 probabilities The last field changes in the meta via the array, so I get all four documents with the query goodShots and through the goodShot01 > GoodShot04 . I had to add missing $ to find 4 instead of 3 documents in the previous section of $ or . Maybe check again that you are asking the right questions?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -