How to save array of objects in mongoose?
Answer / Brij Bihari Jaiswal
To save an array of objects in Mongoose, define the schema for the array, create a new instance of your model, and then push the objects into the array before saving.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we store images in mongodb?
Is mongodb file based?
How to insert data into mongodb using mongoose?
Is mongodb easy to learn?
What mongodb is good for?
How do I drop a collection in mongodb?
What is the master or primary key in mongodb?
Is it true that mongodb uses bson to represent document structure?
What are replica sets in mongodb?
Define mongodb?
Who developed mongodb?
Is mongodb a graph database?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)