We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
One of my schema uses the discriminators as elaborated in this blog http://thecodebarbarian.com/mongoose-4.8-embedded-discriminators.html.
When I use such a schema with nest-mongoose, I get the following error,
....\node_modules@nestjs\mongoose\mongoose.utils.js:4 return ${JSON.stringify(model)}Model; ^ TypeError: Converting circular structure to JSON
${JSON.stringify(model)}Model
I guess the code for generating model token will have to be changed since the schema JSON can not be serialized when there are discriminators.
Thanks.
The text was updated successfully, but these errors were encountered:
The way to generate the token have to much problems I make PR to solve #4 but this solve this problem too.
Lets wait to @kamilmysliwiec to give us more info about this, beacuse the change had a break change.
Sorry, something went wrong.
Fixed thanks to #5 by @silvelo. I'll push it together with the incoming release 👍
No branches or pull requests
Hi,
One of my schema uses the discriminators as elaborated in this blog http://thecodebarbarian.com/mongoose-4.8-embedded-discriminators.html.
When I use such a schema with nest-mongoose, I get the following error,
....\node_modules@nestjs\mongoose\mongoose.utils.js:4
return
${JSON.stringify(model)}Model
;^
TypeError: Converting circular structure to JSON
I guess the code for generating model token will have to be changed since the schema JSON can not be serialized when there are discriminators.
Thanks.
The text was updated successfully, but these errors were encountered: