@doranapp/graphql-no-introspection
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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],
  })
);

Package Sidebar

Install

npm i @doranapp/graphql-no-introspection

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

2.46 kB

Total Files

5

Last publish

Collaborators

  • imandydoan