Title: Java & MongoDB - Embedded Documents
Open Graph Title: Java & MongoDB - Embedded Documents
Description: To insert a document with embedded document in a collection, you can use DBObject/BasicDBObject objects as shown below − Following is the code snippet to insert a document with embedded documents and display them − Now, let's compile and run the
Open Graph Description: To insert a document with embedded document in a collection, you can use DBObject/BasicDBObject objects as shown below − Following is the code snippet to insert a document with embedded documents and display them − Now, let's compile and run the
Opengraph URL: https://www.tutorialspoint.com/java_mongodb/java_mongodb_embedded_document.htm
Domain: www.tutorialspoint.com
| None | IE=edge |
| og:type | article |
| og:image | https://www.tutorialspoint.com/images/tp_logo_436.png |
Links:
Viewport: viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes