apollo-server-restrict-introspection
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

apollo-server-restrict-introspection

Restrict types exposed by apollo-server's introspection/playground.

Installing

npm install apollo-server-restrict-introspection

Usage

See src/demo.ts and src/index.test.ts

Notes

  • 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

Author

Andreas Brekken (@abrkn)

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    1
    • latest

Version History

Package Sidebar

Install

npm i apollo-server-restrict-introspection

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

16.7 kB

Total Files

12

Last publish

Collaborators

  • abrkn