$ cnpm install @envelop/disable-introspection
@envelop/disable-introspectionThis plugin injects the NoSchemaIntrospectionCustomRule validation rule exported from the graphql module to the validation phase for disabling introspection.
yarn add @envelop/disable-introspection
import { envelop } from '@envelop/core';
import { useDisableIntrospection } from '@envelop/disable-introspection';
const getEnveloped = envelop({
plugins: [useDisableIntrospection()],
});
Copyright 2013 - present © cnpmjs.org | Home |