How to require an embedded object? #5948
Unanswered
sean-fletching
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've run into an issue with my schema not enforcing a relationship that I need to have.
I need to enforce the property
locationto be non-nullable/required, but thecreatecommand is allowing me to omit it.Here's the schema:
Here's how I'm writing it:
If this is the expected behavior, can anyone suggest the best approach to make an embedded object required?
Beta Was this translation helpful? Give feedback.
All reactions