class EmbedDoc(BaseDocument): ref = fields.ListField(fields.MapField(fields.DocumentField(Outer)))
class Outer(BaseDocument): lst = fields.ListField(fields.DocumentField(Inner))
class EmbedDoc(BaseDocument): ref_lst = fields.ListField(fields.DocumentField(IntDoc))
class EmbedDoc(BaseDocument): ref = fields.DocumentField(IntDoc)
class EmbedDoc(BaseDocument): ref_map = fields.MapField(fields.DocumentField(IntDoc))