adspace


What is schema in mongoose?

Answer Posted / Surya Kant

In Mongoose, a schema defines the structure of a document (data object). It specifies the fields and their data types for each model. You can create a new schema using const Schema = mongoose.Schema; and define its properties.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define array in mongoose schema?

86


what is the command syntax for inserting a document?

69


How did mongodb get its name?

67