@copropr/graphql-plugin

0.0.4 • Public • Published

Graphql Plugin

A plugin that wraps a few graphql utility like apollo and gqlTools & setup your project easily

Introduction

This plugin will load your resolvers

Installation

# NPM
$ npm i -S @copropr/graphql-plugin

# Yarn
$ yarn add @copropr/graphql-plugin

Usage

// Commonjs
const GqlPlugin = require('@copropr/graphql-plugin').default

// ES6 module way
import GqlPlugin from '@copropr/graphql-plugin'

const graphqlPlugin = new GqlPlugin({
  resolverDir: 'path/to/resolver/dir',
  typeDefDir: 'path/to/typedef/dir',
  logger: console
})

Note: Be sure to include the .instace since this plugin will not wrap bunyan instance of the logger

Package Sidebar

Install

npm i @copropr/graphql-plugin

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

7.38 kB

Total Files

6

Last publish

Collaborators

  • cmseguin