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 has been 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 }
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to save the reference field along with object in post request. Is there any way to do this?
For eg.
Now, I want to create author while making a POST request:
/post/ => { "author": { "name": "Test" }, ..other fields }
The text was updated successfully, but these errors were encountered: