-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ignore inaccessible field argument for DEFAULT_VALUE_USES_INACCE…
…SSIBLE rule (#39) Ignore inaccessible field arguments within the `DEFAULT_VALUE_USES_INACCESSIBLE` rule. Fixes an issue where an inaccessible field argument uses a default value that is inaccessible would cause a false error. ```graphql type User @key(fields: "id") { id: ID friends(type: FriendType = FAMILY @inaccessible): [User!]! } enum FriendType { FAMILY @inaccessible FRIEND } ```
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 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,20 @@ | ||
--- | ||
'@theguild/federation-composition': patch | ||
--- | ||
|
||
Ignore inaccessible field arguments within the `DEFAULT_VALUE_USES_INACCESSIBLE` rule. | ||
|
||
Fixes an issue where an inaccessible field argument uses a default value that is inaccessible would | ||
cause a false error. | ||
|
||
```graphql | ||
type User @key(fields: "id") { | ||
id: ID | ||
friends(type: FriendType = FAMILY @inaccessible): [User!]! | ||
} | ||
|
||
enum FriendType { | ||
FAMILY @inaccessible | ||
FRIEND | ||
} | ||
``` |
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
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