What is schema in mongoose?



What is schema in mongoose?..

Answer / 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

More MongoDB Interview Questions

What is the default port of mongodb server?

1 Answers  


What is mongodb compass?

1 Answers  


Why mongodb is faster?

1 Answers  


What is a ‘namespace’?

1 Answers  


Does mongodb have a gui?

1 Answers  


Is mongodb a sql database?

1 Answers  


What is mongodb sharding?

1 Answers  


How does mongodb provide consistency?

1 Answers  


How do I know if mongodb is installed?

1 Answers  


What is a namespace in mongodb?

1 Answers  


Why is it called mongodb?

1 Answers  


Whether use to safe backup log feature in mongodb?

1 Answers  


Categories