flâneur — a map of the web's best reading

An Introduction to Mongoose Arrays - Mastering JS

masteringjs.io · 746 words · saved by 1 readers

Mongoose arrays supports arrays of primitives and arrays of subdocuments. Here's how you can work with Mongoose arrays effectively.

An Introduction to Mongoose Arrays - Mastering JS Mastering JS Tutorials Newsletter eBooks Jobs ☰ Tutorials Newsletter eBooks Jobs Tutorials / Mongoose / An Introduction to Mongoose Arrays May 22, 2020 Mongoose's Array class extends vanilla JavaScript arrays with additional Mongoose functionality. For example, suppose you have a blog post schema with an array of tags . const blogPostSchema = Schema({ title : String , tags : [ String ] }); When you create a new BlogPost document, the tags property is an instance of the vanilla JavaScript array class. But it also has some special properti

Explore this link on the map →

related reading