hmarr/mongoengine — Issue #330: Unique check with null field
Author: isergey
Created: 2011-10-24 14:31:32+00:00
State: open

How i can do this mongo query in mongoengine (extract rubrics where name is 'Some name and parent is null (root node)
```python
{name:'Some name', parent: null} ?

class Rubric(Document):
parent = ReferenceField('self', reverse_delete_rule=CASCADE) #if node is root? paren == None
name = StringField(required=True,)
children = ListField()
```