Skip to content

Commit 3b60e79

Browse files
author
GustavoRPS
committed
bugfix mongodb return
1 parent 62ef1c8 commit 3b60e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hash_data_api/datasources/mongo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def query(self, **kargs):
3030
if operator == '=' and '[]' in property:
3131
property = property.replace('[]', '')
3232
if not filter.get(property):
33-
filter[property] = {'$in': []}
33+
filter[property] = {'$all': []}
3434
# TODO: find a better way to deal with arrays
35-
filter[property]['$in'].append(value)
35+
filter[property]['$all'].append(value)
3636

3737
if operator == '>' and isinstance(value, datetime):
3838
filter[property] = {

0 commit comments

Comments
 (0)