New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

next-plugin-graphql

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

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
Source
npm
Version published
Weekly downloads
4.2K
-8.82%
Maintainers
1
Weekly downloads
 
Created
Source

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