How to use the express-graphql/dist/renderGraphiQL.renderGraphiQL function in express-graphql

To help you get started, we’ve selected a few express-graphql 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 cettoana / cwb-graphql-gateway / src / index.js View on Github external
(req, res) => res.send(
    renderGraphiQL({
      // Default Query
      query:
`query CwbQuery(
  $authorizationKey: String!,
  $city: String,
  $town: String,
  $stationName: String,
  $stationID: String,
) {
  observations(
    authorizationKey: $authorizationKey,
    city: $city,
    town: $town,
    stationName: $stationName,
    stationID: $stationID,
  )

express-graphql

Production ready GraphQL HTTP middleware.

MIT
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis