Generate GraphQL fragment files for VSCode GraphQL Extension fragment autocompletion
jasonkuhrt opened this issue · 2 comments
jasonkuhrt commented
Currently there is no autocomplete when spreading a fragment reference because there are no graphql fragment files to configure GraphQL VSCode extension with.
How about this relay language plugin emit them?
More context:
angel-discover commented
jakobvase commented
The GraphQL VSCode extension supports inline fragments. I created a .graphqlrc
in the root of my app with the following content, and autocompleting fragment references works.
{
"schema": ["../backend/schema.graphql", "./src/schemaExtensions.graphql"],
"documents": "./src/**/*.tsx"
}