What is the difference between EmbeddedDocumentField and ReferenceField in mongoengine
Internally, what are the differences between these two fields? What kind of schema do these fields map to in mongo? Also, how should documents with relations be added to these fields? For example, if I use from mongoengine import * class User(Document): name = StringField() class Comment(EmbeddedDocument): text = StringField() tag = StringField() class Post(Document): title = StringField() author = ReferenceField(User) comments = ListField(EmbeddedDocumentField(Comment)) and call >>> some_author = User.objects.get(name="ExampleUserName") >>> post = Post.objects.get(author=some_author) >>> post