Convert an SQL into pymongo query
Document prototype:
{
"d": "D",
"g": {
"c": "C",
"a": "A",
"b": "B"
},
"e": "E",
"f": "F"
}
What would be the equivalent of:
SELECT a, b, c, d from Table WHERE d=D AND e=E GROUP BY a
in mongodb using pymongo?
No comments:
Post a Comment