Skip to content

Commit 6f91559

Browse files
authored
Update part3c.md
More code-wrap
1 parent 12c2429 commit 6f91559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/3/en/part3c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ The application works almost perfectly. The frontend assumes that every object h
398398

399399
One way to format the objects returned by Mongoose is to [modify](https://stackoverflow.com/questions/7034848/mongodb-output-id-instead-of-id) the _toJSON_ method of the schema, which is used on all instances of the models produced with that schema.
400400

401-
To modify the method we need to change the configurable options of the schema, options can be changed using the set method of the schema, see here for more info on this method: https://mongoosejs.com/docs/guide.html#options. See <https://mongoosejs.com/docs/guide.html#toJSON> and <https://mongoosejs.com/docs/api.html#document_Document-toObject> for more info on the toJSON option.
401+
To modify the method we need to change the configurable options of the schema, options can be changed using the set method of the schema, see here for more info on this method: https://mongoosejs.com/docs/guide.html#options. See <https://mongoosejs.com/docs/guide.html#toJSON> and <https://mongoosejs.com/docs/api.html#document_Document-toObject> for more info on the _toJSON_ option.
402402

403-
see <https://mongoosejs.com/docs/api.html#transform> for more info on the transform function.
403+
see <https://mongoosejs.com/docs/api.html#transform> for more info on the _transform_ function.
404404

405405
```js
406406
noteSchema.set('toJSON', {

0 commit comments

Comments
 (0)