rangle / angular-ssr

Angular 4+ server-side rendering solution compatible with @angular/material, jQuery, and other libraries that touch the DOM (as well as providing a rich feature set!)
BSD 2-Clause "Simplified" License
279 stars 38 forks source link

Gives error when inserting subdocs in mongoose #42

Closed mariohmol closed 7 years ago

mariohmol commented 7 years ago

Hi there!!

Awesome work, thanks a lot for this repo!!!!

I'm making an app based on that and i had a issue where i could not include a document with subdocs (schemas..).

I dont know if you can help some how, because the same code works isolated (outisde of the andular-ssr index.ts)

Here is the bug in mongoose if you would like to keep tracking

https://github.com/Automattic/mongoose/issues/5302#issuecomment-306662162

Here is how i reproduced the error:

https://github.com/mariohmol/angular-ssr/blob/master/examples/demand-express/server/index.ts#L153

Feel free to close the issue if you think is not related or if there is nothing that you can do!

Thanks a lot!

mariohmol commented 7 years ago

After updates in mongo and angular-ssr not having this issue anymore, we had a good discussion here as well that might help who gets here https://github.com/Automattic/mongoose/issues/5302#issuecomment-306662162