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
-
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
location
to be non-nullable/required, but thecreate
command 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