These are chat archives for Automattic/mongoose

5th
Jan 2018
AnGrYbEaRcOdE
@CodeME1118
Jan 05 2018 18:23
I have a quick question surrounding mongoose and database. I am currently in a web development course, and we are covering referencing and nesting data in mongoose, however, when I try to nest and reference a second piece of data from the same code while changing the title and content(a fake blog database), it says "Validation error"
Kev
@lineus
Jan 05 2018 19:35
@CodeME1118 can you provide a gist of your schema and the code where you are trying to access it? I'm no expert, but I'll take a look.
AnGrYbEaRcOdE
@CodeME1118
Jan 05 2018 20:14
@theoutlander
@li
@lineus
Here it is
Screen Shot 2018-01-05 at 1.39.50 PM.png
Sorry. The mobile version is not easy to use.
Kev
@lineus
Jan 05 2018 20:19
yeah, the reviews on the app store are... brutally honest.
AnGrYbEaRcOdE
@CodeME1118
Jan 05 2018 20:19
@lineus thank you for taking a look and for any help in advance
Kev
@lineus
Jan 05 2018 20:22
you might try using posts: [ postSchema ] in your user schema.
Kev
@lineus
Jan 05 2018 20:34
@CodeME1118 you might try using posts: [ postSchema ] in your user schema. //sorry forgot to include your name :)
AnGrYbEaRcOdE
@CodeME1118
Jan 05 2018 20:35
Alright. I will try that. Thanks for the help!