Need help with anagraphql?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

oslabs-beta
148 Stars 0 Forks 369 Commits 15 Opened issues

Services available

!
?

Need anything else?

Contributors list

No Data

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...

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.