MongoDB Relationships Pt.2

2021-9-12 Less than 1 minute

# MongoDB Relationships Pt.2

# In simple terms what is a sub-document?

Documents within in other documents.

# When might you use a sub-document?

When you're you adding onto a document because a function or a situation has changed.

# How do you add to a collection of sub-documents? What about editing them?

Create the document as a new Document , then edit the document to add special items like names and inputs, then edit a document to add another function.

# Daily Challenge

The Planets! (opens new window)

Last update: September 19, 2021 13:26
Contributors: Derek Shain