Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible listField with Embedded fields ? #20

Open
horacioibrahim opened this issue Aug 10, 2015 · 1 comment
Open

Is it possible listField with Embedded fields ? #20

horacioibrahim opened this issue Aug 10, 2015 · 1 comment

Comments

@horacioibrahim
Copy link

Hi,

Is it possible to implement ListField with EmbeddedField? Something:

stars = ListField(EmbeddedDocumentField(StarsModel))

where...

class StarsModel(EmbeddedDocument):
    score = db.IntField(default=0)
    voter = db.ReferenceField(User)

How to make this schema?

@sapamja
Copy link

sapamja commented Jan 21, 2016

Are you able to get this working ? Even i would like to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants