Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
/ craco-graphql-loader Public archive

GraphQL Loader plugin for CRACO, React Scripts, Create React App

License

Notifications You must be signed in to change notification settings

ivdma/craco-graphql-loader

Repository files navigation

🚨🚨🚨🚨🚨 Maintainers needed 🚨🚨🚨🚨🚨

I am abandoning the project and will archive the repository after January 1st 2022. Ping me if you wish to take this repository over.

GraphQL Loader plugin for CRACO

Plugin for craco which allows configuring the graphql-tag/loader inside of react-scripts applications.

Usage

Install

npm i craco-graphql-loader

# or

yarn add craco-graphql-loader

Add this plugin to your craco.config.js:

const cracoGraphqlLoader = require("craco-graphql-loader");

module.exports = {
  plugins: [{ plugin: cracoGraphqlLoader }],
};

Then import any query:

import MyQuery from "./MyQuery.graphl";

For further usage instructions visit: https://github.com/apollographql/graphql-tag


Made with love at Payt B.V.. We're hiring!

About

GraphQL Loader plugin for CRACO, React Scripts, Create React App

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •