# next-plugin-mini-graphql

> Provides Next.js support for `.graphql` files using `graphql-mini-transforms`

Latest version **0.0.3** (published 2020-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-plugin-mini-graphql
pnpm add next-plugin-mini-graphql
yarn add next-plugin-mini-graphql
bun add next-plugin-mini-graphql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-02-28 |
| First published | 2020-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | cartogram |

## Links

- npm: https://www.npmjs.com/package/next-plugin-mini-graphql
- Repository: https://github.com/cartogram/next-plugin-mini-graphql
- Homepage: https://github.com/cartogram/next-plugin-mini-graphql#readme
- Issues: https://github.com/cartogram/next-plugin-mini-graphql/issues
- npm.io page: https://npm.io/package/next-plugin-mini-graphql

## Dependencies (1)

- [graphql-mini-transforms](https://npm.io/package/graphql-mini-transforms.md) ^1.0.4

## Recent versions

- 0.0.3 (latest) — 2020-02-28
- 0.0.2 — 2020-02-22
- 0.0.1 — 2020-02-21
- 0.0.0 — 2020-02-21

## README

# Next Plugin Mini GraphQL

Provides [Next.js](https://nextjs.org/) support for `.graphql` files using [`graphql-mini-transforms`](https://github.com/Shopify/graphql-tools-web/tree/master/packages/graphql-mini-transforms).

## Installation

```sh
npm install next-plugin-mini-graphql      # if using npm
yarn add next-plugin-graphql              # if using yarn
```

## Usage

Create a `next.config.js` in your project

```js
// next.config.js

const withGraphql = require('next-plugin-mini-graphql');

module.exports = withGraphql();
```

Optionally you can add your custom Next.js configuration as parameter

```js
// next.config.js

const withGraphql = require('next-plugin-mini-graphql');

module.exports = withGraphql({
  webpack(config, options) {
    return config;
  },
});
```

---
_Source: https://npm.io/package/next-plugin-mini-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
