Restrict types exposed by apollo-server's introspection/playground.
npm install apollo-server-restrict-introspection
See src/demo.ts and src/index.test.ts
- You must use
app.use(bodyParser.json())
before the middleware - You must declare the directive's type, exported as the string
directiveTypeDef
- The middleware must run before apollo-server's middleware
Andreas Brekken (@abrkn)
MIT