Open masihjahangiri opened 3 years ago
@JakeDawkins @abernix Do you have any idea? It's a simple and weird issue.
I solved my problem temporary, I added excludes
field to remove the local schema. My local schema doesn't have any problem and it doesn't conflict with the remote server schema.
apollo.config.js is:
module.exports = {
client: {
excludes: ['./src/client/localState/localSchema.gql'],
service: {
name: 'pelas',
url: 'http://api.pelas.co/graphql',
},
},
};
localSchema.gql:
extend type Query {
localState: QueryLocalState!
}
extend type Mutation {
localStateUpdateIsLoggedIn(isLoggedIn: Boolean!): Boolean!
}
type QueryLocalStateUser {
id: ID!
isLoggedIn: Boolean!
}
type QueryLocalState {
id: ID!
user: QueryLocalStateUser!
}
The remote server schema: http://api.pelas.co/graphql
My apollo.config.js is:
I get this error in my vscode log.
Versions Apollo GraphQL vscode plugin: v1.17.0
VScode: Version: 1.51.1 (user setup) Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:34:32.027Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.18363