uMaxmaxmaximus / ui-js

6 stars 4 forks source link

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

Open OKNoah opened 7 years ago

OKNoah commented 7 years ago

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