1.0.2 • Published 10 months ago

@doranapp/graphql-no-introspection v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@doranapp/graphql-no-introspection

Installation

yarn add @doranapp/graphql-no-introspection

Usage

import express from 'express';
import { createHandler } from 'graphql-http/lib/use/express';
import { graphqlSchema } from './schema';

import { noIntrospection } from '@doranapp/graphql-no-introspection';

const app = express();
app.use(
  '/graphql',
  createHandler({
    schema: graphqlSchema,
    validationRules: [noIntrospection],
  })
);