Skip to content

Confused about the documentation #2844

Open
@kietheros

Description

@kietheros

I am confused about this line in mongoengine docs

If you use Document and the database contains data that isn’t defined then that data will be stored in the document._data dictionary.

I tested with Document, when loading a document which has a field not defined in schema, mongoengine raises mongoengine.errors.FieldDoesNotExist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions