razzle-plugin-graphql

4.2.18 • Public • Published

razzle-plugin-graphql

This package contains a plugin for using graphql/gql with Razzle

Usage in Razzle Projects

yarn add razzle-plugin-graphql --dev

With the default options

// razzle.config.js

module.exports = {
  plugins: ['graphql'],
};

With custom options

No supported options right now

Options

No supported options right now


Use

To use a .graphql or .gql simply import them in your component.

import query from './query.graphql';

console.log(query);
// {
//   "kind": "Document",
// ...

see the graphql-tag package documentation for further information.

Readme

Keywords

none

Package Sidebar

Install

npm i razzle-plugin-graphql

Weekly Downloads

91

Version

4.2.18

License

MIT

Unpacked Size

5.9 kB

Total Files

6

Last publish

Collaborators

  • razzle-bot