How to use graphql-language-service-server - 2 common examples

To help you get started, we’ve selected a few graphql-language-service-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 graphql / graphiql / packages / graphql-language-service / src / cli.js View on Github external
});

    const options = {};
    if (argv && argv.port) {
      options.port = argv.port;
    }
    if (argv && argv.method) {
      options.method = argv.method;
    }
    if (argv && argv.configDir) {
      options.configDir = argv.configDir;
    }
    try {
      startServer(options);
    } catch (error) {
      const logger = new Logger();
      logger.error(error);
    }
    break;
  default:
    client(command, argv);
    break;
}

// Exit the process when stream closes from remote end.
process.stdin.on('close', () => {
  process.exit(0);
});
github graphql / graphiql / packages / graphql-language-service / src / cli.js View on Github external
process.exit(0);
      }
    });

    const options = {};
    if (argv && argv.port) {
      options.port = argv.port;
    }
    if (argv && argv.method) {
      options.method = argv.method;
    }
    if (argv && argv.configDir) {
      options.configDir = argv.configDir;
    }
    try {
      startServer(options);
    } catch (error) {
      const logger = new Logger();
      logger.error(error);
    }
    break;
  default:
    client(command, argv);
    break;
}

// Exit the process when stream closes from remote end.
process.stdin.on('close', () => {
  process.exit(0);
});

graphql-language-service-server

Server process backing the GraphQL Language Service

MIT
Latest version published 3 months ago

Package Health Score

80 / 100
Full package analysis