# graphback

> Auto generate resolvers on top of the graphql and database of your choice

Latest version **1.1.2** (published 2021-02-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install graphback
pnpm add graphback
yarn add graphback
bun add graphback
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2021-02-24 |
| First published | 2019-06-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.15.3 |
| Dependencies | 6 |
| Unpacked size | 35 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 407 |
| Author | wtrocki@redhat.com |
| Maintainers | ephelan, wtrocki, darahayes, aerogear-ci |

## Links

- npm: https://www.npmjs.com/package/graphback
- Repository: https://github.com/aerogear/graphback
- Homepage: https://github.com/aerogear/graphback/tree/master/packages/graphback#readme
- Issues: https://github.com/aerogear/graphback/issues
- npm.io page: https://npm.io/package/graphback

## Dependencies (6)

- [tslib](https://npm.io/package/tslib.md) 2.0.3
- [@graphback/core](https://npm.io/package/@graphback/core.md) 1.1.2
- [@graphql-tools/merge](https://npm.io/package/@graphql-tools/merge.md) 6.2.6
- [graphql-subscriptions](https://npm.io/package/graphql-subscriptions.md) 1.1.0
- [@graphback/codegen-client](https://npm.io/package/@graphback/codegen-client.md) 1.1.2
- [@graphback/codegen-schema](https://npm.io/package/@graphback/codegen-schema.md) 1.1.2

## Recent versions

- 1.1.2 (latest) — 2021-02-24
- 1.1.0-alpha2 (next) — 2020-10-20
- 0.10.0-rc2 (dev) — 2019-11-25
- 1.1.1 — 2021-02-05
- 1.1.0 — 2020-11-10
- 1.1.0-alpha1 — 2020-10-08
- 1.0.1 — 2020-09-25
- 1.0.0-beta7 — 2020-09-24
- 1.0.0-beta6 — 2020-09-23
- 1.0.0-beta5 — 2020-09-22
- 1.0.0-beta4 — 2020-09-21
- 1.0.0-beta3 — 2020-09-21
- 1.0.0-beta2 — 2020-09-18
- 1.0.0-beta1 — 2020-09-15
- 0.16.2 — 2020-09-07
- … 85 more at https://npm.io/package/graphback/versions

## README

## Graphback

<p align="center">
  <img width="400" src="https://raw.githubusercontent.com/aerogear/graphback/master/website/static/img/logo.png"/>
  <br/>
  Auto generate database structure, <br/>
  GraphQL Resolvers and Queries from GraphQL types 🚀
</p>

## Motivation 

Graphback helps you to kickstart your experience with any existing GraphQL implementation
by generating backend and client side CRUD layer using your GraphQL data model.

**Documentation**: https://graphback.dev

**Repository**: https://github.com/aerogear/graphback/


## Usage

`graphback` provides a programmatic API for the Graphback ecosystem.
In most of the cases you can use graphback by utilizing graphback-cli package that will expose all useful commands and cover most of the use cases.

Install with npm:

```bash
npm install graphback
```

Install with yarn:

```bash
npm install graphback
```

`buildGraphbackAPI` will process your schema and generate a CRUD API with schema, resolvers, services and data sources.

```ts
import { buildGraphbackAPI } from 'graphback';
import { createKnexDbProvider } from '@graphback/runtime-knex';
import Knex from 'knex';

const db = Knex({...});

const { typeDefs, resolvers, contextCreator } = buildGraphbackAPI(schema, {
  dataProviderCreator: createKnexDbProvider(db)
});
```

Up-to-date usage and configuration information is covered in depth over on our website [graphhback.dev](https://graphback.dev/docs/getting-started/add-to-project).

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