How to use the apollo-language-server/lib/providers/schema/engine.EngineSchemaProvider function in apollo-language-server

To help you get started, we’ve selected a few apollo-language-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ardatan / graphql-toolkit / packages / loaders / apollo-engine / src / index.ts View on Github external
async load(_: 'apollo-engine', options: ClientConfig & SingleFileOptions) {
    const engineSchemaProvider = new EngineSchemaProvider(options);
    const schema = await engineSchemaProvider.resolveSchema({});

    return {
      location: 'apollo-engine',
      schema,
    };
  }
}