You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
How do I specify description as a require field? sections.description or sections.$.description does not work.
I asked the same question here, but I was a bit surprised this feature is not supported.
This seems to be such a common scenario. I could potentially extract embedded docs out to a separate collection, but that defeats the purpose of choosing MongoDB for me because I was looking to have everything (which isn't a lot) under one document and avoid multiple queries.
The text was updated successfully, but these errors were encountered:
eikawata
changed the title
Specifying keys in embedded doc as required
Specifying keys in embedded doc in list as required
Feb 7, 2015
Lets' say I have a following structure.
How do I specify
description
as a require field?sections.description
orsections.$.description
does not work.I asked the same question here, but I was a bit surprised this feature is not supported.
This seems to be such a common scenario. I could potentially extract embedded docs out to a separate collection, but that defeats the purpose of choosing MongoDB for me because I was looking to have everything (which isn't a lot) under one document and avoid multiple queries.
The text was updated successfully, but these errors were encountered: