Problem:
erwin DM NoSQL: How to model an embedded document?
Solution:
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”
Comments
0 comments
Please sign in to leave a comment.