-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
When I ran your first very simple example I got an error
pql.find("a > 1 and b == 'foo' or not c.d == False")
ParseError: Unsupported syntax (NameConstant). options: ['Call', 'Dict', 'List', 'Name', 'Num', 'Str', 'operator_and_right']
I think you need to replace False with null.
pql.find("a > 1 and b == 'foo' or not c.d == null")
Out[24]: {'$or': [{'a': 1}, {'$and': [{'b': '2'}, {'c.d': None}]}]}
I used Python 3.5.
Cheers
H
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels