You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: when installing the _mongoose-unique-validator_ library, you may encounter the following error message:
383
383
384
-

384
+

385
385
386
386
The reason for this is that at the time of writing (10.11.2023) the library is not yet compatible with Mongoose version 8. If you encounter this error, you can revert to an older version of Mongoose by running the command
387
387
@@ -408,7 +408,6 @@ For making new users in a production or development environment, you may send a
The note scheme will also need to change as follows in our models/note.js file:
450
450
451
451
```js
@@ -488,7 +488,7 @@ We can see that the user has two notes.
488
488
489
489
Likewise, the ids of the users who created the notes can be seen when we visit the route for fetching all notes:
490
490
491
-

491
+

492
492
493
493
### Populate
494
494
@@ -515,7 +515,7 @@ The result is almost exactly what we wanted:
515
515
516
516
We can use the populate parameter for choosing the fields we want to include from the documents. In addition to the field <i>id</i> we are now only interested in <i>content</i> and <i>important</i>.
517
517
518
-
The selection of fields is done with the Mongo [syntax](https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/#return-the-specified-fields-and-the-id-field-only):
518
+
The selection of fields is done with the Mongo [syntax](https://www.mongodb.com/docs/manual/tutorial/project-fields-from-query-results/#return-the-specified-fields-and-the-_id-field-only):
0 commit comments