ChilliCream / ChilliCream/graphql-platform
Improve error message for duplicate constraints
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Product
Hot Chocolate
Is your feature request related to a problem?
I often get error messages like this:
The specified directive `@myDirective` is unique and cannot be added twice. (My.Type)
The solution you'd like
Give me more information to go on, such as which field this applies to:
The specified directive `@myDirective` is unique and cannot be added twice. (My.Type.Property)
(Other better solutions may exist.)
Otherwise, if adding a large object with many properties, I have to spend an unnecessarily large amount of time hunting around to figure out where the error is.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the Hot Chocolate code and tests that format duplicate-constraint or directive errors; done means the diagnostic identifies the affected field path, such as My.Type.Property, and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, graphql
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100