🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

next-plugin-graphql

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-plugin-graphql

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

0.0.2
latest
Version published
Weekly downloads
4.5K
21.38%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 28 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts