Skip to content

Negan1911/next-graphql-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-graphql-loader

Allows importing .graphql or .gql files on Nextjs via graphql-tag.

Installation

npm install --save graphql next-graphql-loader

Or using yarn:

yarn add graphql next-graphql-loader

Then, import the library in your next.config.js file.

// next.config.js
const withGraphql = require("next-graphql-loader");

module.exports = withGraphql({});

or, with next-compose-plugins:

const withGraphql = require("next-graphql-loader");

module.exports = withPlugins([withGraphql])

Usage:

Just import any .graphql file :)

About

Graphql Support for Nextjs using graphql-tag/loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published