erwin DM NoSQL: How to model an embedded document?
To embed a document
- Open the palette and drag and drop a collection inside of the parent collection, this will create a field of type “definition”.
To embed a document inside an array
- Drag and drop a field into the collection, change the data type to “array”
- You can then drag and drop a collection onto the array. It will also create an index of type “definition”