We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, when relationships are not loaded, it becomes undefined. How about we throw an error when accessing unloaded relationships?
undefined
const user = userRepo.find(1) user.posts // Error('relationship is not loaded')
This might make it easier to catch errors where people forget to load them, and try to access it 🤔
The text was updated successfully, but these errors were encountered:
withAll()
withAllRecursive()
No branches or pull requests
Currently, when relationships are not loaded, it becomes
undefined
. How about we throw an error when accessing unloaded relationships?This might make it easier to catch errors where people forget to load them, and try to access it 🤔
The text was updated successfully, but these errors were encountered: