-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message for empty IDs arrays in
@AffectedEntity
(#2649)
An empty IDs array in a GraphQL operation would trigger a misleading error message that no scopes could be found. This could lead to developers incorrectly setting the skipScopeCheck option. To prevent this, we improve the error message, encouraging developers to skip the operation if no IDs are provided.
- Loading branch information
1 parent
2383179
commit d535e32
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/cms-api": minor | ||
--- | ||
|
||
Improve error message for empty IDs arrays in `@AffectedEntity` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters