Wit Gatsby GraphQL source plugin, we are asked to define a root level "fieldName" that surrounds the actual query.
Using IntelliJ graphQL plugin, which relies on graphql-config, there's no autocompletion because it doesn't receive the arbitrary fieldName from the endpoint. Do you have any clue ?
The Gatsby-Source-GraphQL config
{
resolve: 'gatsby-source-graphql',
options: {
// Arbitrary name for the remote schema Query type
typeName: 'apiMG',
// Field under which the remote schema will be accessible. You'll use this in your Gatsby query
fieldName: 'apiMG',
// Url to query from
url: `${process.env.GATSBY_API_URL + process.env.GATSBY_API_KEY}`,
refetchInterval: 60,
},
},
@romainbessugesmeusy IntelliJ GraphQL Plugin doesn't use JavaScript implementation of graphql-config, they only share json / yaml syntax. You should submit an issue in plugin's repository.
Wit Gatsby GraphQL source plugin, we are asked to define a root level "fieldName" that surrounds the actual query. Using IntelliJ graphQL plugin, which relies on graphql-config, there's no autocompletion because it doesn't receive the arbitrary fieldName from the endpoint. Do you have any clue ?
The Gatsby-Source-GraphQL config
The .graphqlconfig file