razzle-plugin-graphql

    4.1.0 • 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.

    Keywords

    none

    Install

    npm i razzle-plugin-graphql

    DownloadsWeekly Downloads

    126

    Version

    4.1.0

    License

    MIT

    Unpacked Size

    5.75 kB

    Total Files

    6

    Last publish

    Collaborators

    • razzle-bot