Skip to content

ormjs: Arrays of sub-documents don't work, returns Promise #7

@OKNoah

Description

@OKNoah

ValidationError: Field 'myField' must be Array, but have Promise

This happens any time you try to add a sub-document to an array of subdocuments and save.

See the test case I've added for this here: https://github.com/OKNoah/ormjs/blob/389429ced86a94a9304fdccdcd9372d6f75a9980/index.test.js

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