# gestalt-graphql

> generates a GraphQL schema with resolution based on a definition using the GraphQL schema language.

Latest version **0.0.20** (published 2017-08-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install gestalt-graphql
pnpm add gestalt-graphql
yarn add gestalt-graphql
bun add gestalt-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.20 |
| Published | 2017-08-27 |
| First published | 2016-06-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 204 |
| Author | Charlie Schwabacher |
| Maintainers | charlieschwabacher |

## Links

- npm: https://www.npmjs.com/package/gestalt-graphql
- Repository: https://github.com/charlieschwabacher/gestalt
- Homepage: https://github.com/charlieschwabacher/gestalt#readme
- Issues: https://github.com/charlieschwabacher/gestalt/issues
- npm.io page: https://npm.io/package/gestalt-graphql

## Dependencies (5)

- [graphql](https://npm.io/package/graphql.md) ^0.6.0
- [camel-case](https://npm.io/package/camel-case.md) ^3.0.0
- [constant-case](https://npm.io/package/constant-case.md) ^2.0.0
- [gestalt-utils](https://npm.io/package/gestalt-utils.md) ^0.0.20
- [graphql-relay](https://npm.io/package/graphql-relay.md) ^0.4.4

## Recent versions

- 0.0.20 (latest) — 2017-08-27
- 0.0.19 — 2017-06-03
- 0.0.18 — 2017-06-03
- 0.0.17 — 2016-07-06
- 0.0.16 — 2016-07-03
- 0.0.15 — 2016-07-02
- 0.0.14 — 2016-07-01
- 0.0.13 — 2016-06-27
- 0.0.11 — 2016-06-23
- 0.0.10 — 2016-06-23
- 0.0.9 — 2016-06-23
- 0.0.8 — 2016-06-23
- 0.0.7 — 2016-06-23
- 0.0.6 — 2016-06-20
- 0.0.1 — 2016-06-20

## README

gestalt-graphql
===============

[![npm version](https://badge.fury.io/js/gestalt-graphql.svg)](https://badge.fury.io/js/gestalt-graphql)

Gestalt GraphQL generates a GraphQL schema with resolution based on a definition
using the GraphQL schema language.


```javascript
import fs from 'fs';
import gestaltGraphQL from 'gestalt-graphql';
import gestaltPostgres from 'gestalt-postgres';
import importAll from 'import-all';

const schemaText = fs.readFileSync(`${__dirname}/schema.graphql`);

const {schema} = gestaltGraphQL(
  schemaText,
  importAll(`${__dirname}/objects`),
  importAll(`${__dirname}/mutations`),
  gestaltPostgres({databaseURL: 'postgres://localhost/example'}),
);
```

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