You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
I would like to save the reference field along with object in post request. Is there any way to do this?
For eg.
class User(db.Document):
name = db.StringField(required=True, unique=True)
class Post(db.Document):
# Some fields
# ...
author = db.ReferenceField(User)
Now, I want to create author while making a POST request:
/post/ => { "author": { "name": "Test" }, ..other fields }