text = StringField(required=True)


class Feed(Document):
    label = StringField(required=True)
feed_url = StringField(required=True)
posts = ListField(EmbeddedDocumentField(Post))
Feed.drop_collection()
Feed(label='label', feed_url='www.feed.com').save()
post = Post(uid='1', text='hi')
updated = Feed.objects(posts__uid=post.uid).update_one(set__posts__S=post)
if not updated:
    Feed.objects.update_one(push__posts=post)
Updating a list of embedded documents in mongoengine