Make schema argument optional in getAutocompleteSuggestions function
Open
graphql-language-service
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
This would enable code editors to give suggestions of top-level keywords like `query`, `mutation`, etc. when the cursor is at `kind === 'Document'`.
None of the logic till then (correct me if I am missing something) uses schema.
https://github.com/graphql/graphql-language-service/blob/8345059945fade19e4cb78849034faaa947ff1af/packages/interface/src/getAutocompleteSuggestions.js#L53-L83
**I can create a PR for this if you want** 😄. Let me know.
Contributor guide
Assessment
This issue has not been assessed yet.