graphql / graphql/graphiql

Plugin: exclude existing fields from autocomplete unless alias is used

Open
#895 5 comments 3 reactions 0 assignees View on GitHub
graphql-language-service
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

I think autocompletion should be aware of current queryString, because you then get hit for fields what are currently in query.

Here: https://github.com/graphql/graphql-language-service/blob/master/packages/interface/src/getAutocompleteSuggestions.js#L86

we get suggestion for everything available in schema and query string is completely ignored. https://i.imgur.com/heB9sRS.gif

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.