-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
feat(graphql-language-service): Support for experimental fragment arguments #3761
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,9 @@ | |
argDefs = | ||
directiveDef && (directiveDef.args as GraphQLArgument[]); | ||
break; | ||
case RuleKinds.FRAGMENT_SPREAD: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure whether getting the type-info is actually needed here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so you are lexing properly with the changes in |
||
// TODO: lookup fragment and return variable definitions (?) | ||
break; | ||
// TODO: needs more tests | ||
case RuleKinds.ALIASED_FIELD: { | ||
const name = state.prevState?.name; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this test is not working yet, even with your graphql-js changes, it may be because we aren't outputting the arguments in
getTypeInfo