graphql / graphql/graphiql

Make schema argument optional in getAutocompleteSuggestions function

Open
#881 5 comments 0 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

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

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.