-
Notifications
You must be signed in to change notification settings - Fork 112
Crash when referenced item id does not exist. #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a side effect of there being no Cascade delete in MongoDB. Arguably, Cascade delete is not always what you want though. For similar cases, we have a custom hook that remove dead references before returning some objects, also when not expanded, if I remember correctly. Other then that, |
Thanks! Actually I don't care about cascading deletes, just want for |
Using the common example case:
The last GET crashes
rest-layer
. I traced down to:where
i
isnil
.Managed to somewhat workaround with:
However, now
user
is returned as:Where ideally for me to be
"user": null
. What is your advice @smyrman @rs .Thanks.The text was updated successfully, but these errors were encountered: