Skip to content

[apollo-vscode] Autocomplete does not work with remote endpoint or local schema #902

@klemenoslaj

Description

@klemenoslaj

I am trying since some hours to configure Apollo GraphQL VSCode plugin without any success.
The only thing I get out of it is validation against the schema, and that only for the very first time after the editor reload.

Configuration examples:

Remote endpoint

module.exports = {
  client: {
    service: {
      name: 'my-project',
      url: 'http://localhost:4000/graphql',
    },
    includes: ['./project/**/*.graphql'],
  },
};

Local schema

module.exports = {
  client: {
    service: {
      name: 'my-project',
      localSchemaFile: 'path/to/schema.json'
    },
    includes: ['./project/**/*.graphql'],
  },
};

I tried to look at the debug output with verbose option and one thing that I noticed is that result is always empty (like []). I am running whole Apollo stack on the latest versions.

If it helps I can as well post the whole verbose output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions