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

embedded documents throwing some strange error #13

Open
mergingseas opened this issue Feb 27, 2022 · 0 comments
Open

embedded documents throwing some strange error #13

mergingseas opened this issue Feb 27, 2022 · 0 comments

Comments

@mergingseas
Copy link

mergingseas commented Feb 27, 2022

Hi,
I am getting this error when I have embedded documents.
Screen Shot 2022-02-27 at 11 39 41 AM

my schema file looks like this where I have a labelSchema and customerSchema has a field which is array of labelSchema:
Screen Shot 2022-02-27 at 11 41 39 AM

when I try to create a document of type customer in application database I get the error above,
this has something to do with embedded schema for embedded docs, if I just defined the CustomerSchema with labels as nested path instead

Screen Shot 2022-02-27 at 11 42 47 AM

it works,

code to try to create a customer document is this:
Screen Shot 2022-02-27 at 11 43 47 AM

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

1 participant