vscode-graphql icon indicating copy to clipboard operation
vscode-graphql copied to clipboard

Cannot query field on type using @client directive

Open nikzanda opened this issue 1 year ago • 0 comments

In my project, I use an endpoint for my graphql queries and use a schema written in a local file within the project to extend some types, so that I can fetch those fields by resolving them locally through the @client directive. I can’t configure the apollo.config.js file to merge the remote schema with the local one, so for VS Code those fields resolved locally don’t exist. How can I solve this problem?

P.S. The queries are executed correctly by resolving all fields, both those resolved by the remote schema and those resolved locally, only VS Code returns an error.

nikzanda avatar Sep 07 '23 14:09 nikzanda