Hi,
I am getting this error when I have embedded documents.
my schema file looks like this where I have a labelSchema and customerSchema has a field which is array of labelSchema:
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
it works,
code to try to create a customer document is this:
Hi, I am getting this error when I have embedded documents.
my schema file looks like this where I have a labelSchema and customerSchema has a field which is array of labelSchema:
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
it works,
code to try to create a customer document is this: