8000 EmbeddedDocumentField: cannot convert value of type <class '...'> to bson · Issue #132 · heynemann/motorengine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
EmbeddedDocumentField: cannot convert value of type <class '...'> to bson #132
Open
@dandrei

Description

@dandrei

I have the following setup:

class InnerClass(Document):
    field: StringField()

class OuterClass(Document):
    field: EmbeddedDocumentField(embedded_document_type=InnerClass)

When calling:
await OuterClass(field=InnerClass(field="test")).save()

I get:
cannot convert value of type <class 'scout.persist.domains.InnerClass'> to bson

What could be the problem?
I followed the documentation as listed here: http://motorengine.readthedocs.io/en/latest/modeling.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0