Don't throw exception if related object can't be found
Open
relates-to: grails-data-mongodb
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
If a document has a reference to another domain class and the document for that domain class cannot found, it should return null instead of throwing an exception. Add as a configuration option to prevent breaking existing behavior
Contributor guide
Research direction
Start by locating how Grails resolves a referenced domain class and where it raises an exception when the referenced document is missing. Then trace the configuration options for that behavior; done means a configurable option returns null for a missing related document while preserving the existing behavior by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100