0.0.2 • Published 6 years ago

next-plugin-graphql v0.0.2

Weekly downloads
4,591
License
MIT
Repository
github
Last release
6 years ago

Next.js + Graphql

Use Graphql files with Next.js

Installation

npm install next-plugin-graphql

or

yarn add next-plugin-graphql

Usage

Create a next.config.js in your project

// next.config.js
const withGraphql = require('next-plugin-graphql')
module.exports = withGraphql()

Optionally you can add your custom Next.js configuration as parameter

// next.config.js
const withGraphql = require('next-plugin-graphql')
module.exports = withGraphql({
  webpack(config, options) {
    return config
  }
})