anagraphql

2.0.0 • Public • Published

What is anagraphql?

Anagraphql an express middleware package that can be used to analyze graphQL queries before they interact with a database.

Installation

To install anagraphql, run the following command in the terminal:

npm i anagraphql

Getting started

To use anagraphql in your application, require it into the file where you're setting up your server.

const anagraphql = require('anagraphql');

From there, add anagraphql to your app.use function, as you would with any other middleware function. To render the anagraphql interactive playground, set graphiql equal to true, as shown below:

app.use('/graphql',
  anagraphql({
    schema,
    rules,
    anagraphqlPlayground: true
  }),
  graphqlHTTP({
    schema,
  }));

Anangraphql Interactive Playground

More soon...

Package Sidebar

Install

npm i anagraphql

Weekly Downloads

22

Version

2.0.0

License

MIT

Unpacked Size

896 kB

Total Files

71

Last publish

Collaborators

  • camerawalrond