Skip to content

Next plugin for .graphql and .gql files using graphql-tag

License

Notifications You must be signed in to change notification settings

lfades/next-plugin-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
})

About

Next plugin for .graphql and .gql files using graphql-tag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published