I have some models:
class Node(Document): name = fields.StringField() class Relation(EmbeddedDocument): name = fields.StringField() nodes = field