# restaf-graphql-server

> graphql server for Viya

Latest version **1.4.0** (published 2019-06-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install restaf-graphql-server
pnpm add restaf-graphql-server
yarn add restaf-graphql-server
bun add restaf-graphql-server
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2019-06-11 |
| First published | 2019-03-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Deva Kumaraswamy |
| Maintainers | devakumaraswamy |
| Keywords | restaf, apollo-server, graphql, hapijs, Viya, SAS |

## Links

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

## Dependencies (15)

- [yar](https://npm.io/package/yar.md) ^9.1.0
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [yargs](https://npm.io/package/yargs.md) ^13.2.2
- [restaf](https://npm.io/package/restaf.md) ^1.5.3
- [graphql](https://npm.io/package/graphql.md) ^14.1.1
- [@hapi/bell](https://npm.io/package/@hapi/bell.md) ^10.1.0
- [@hapi/good](https://npm.io/package/@hapi/good.md) ^8.2.0
- [@hapi/hapi](https://npm.io/package/@hapi/hapi.md) ^18.3.1
- [@hapi/inert](https://npm.io/package/@hapi/inert.md) ^5.2.0
- [@hapi/cookie](https://npm.io/package/@hapi/cookie.md) ^10.1.0
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [apollo-server-hapi](https://npm.io/package/apollo-server-hapi.md) ^2.5.0
- [node-cache-promise](https://npm.io/package/node-cache-promise.md) ^1.0.0
- [hapi-server-session](https://npm.io/package/hapi-server-session.md) ^4.3.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2019-06-11
- 1.4.1 (test) — 2020-04-28
- 1.3.1 (beta131) — 2019-06-10
- 1.2.1 (beta121) — 2019-05-29
- 1.2.0 (beta120) — 2019-05-29
- 1.0.0 (next01) — 2019-05-09
- 0.7.4 (ngen04) — 2019-05-06
- 0.7.2 (ngen03) — 2019-05-06
- 0.10.2 (ngen02) — 2019-05-06
- 0.10.1 (ngen01) — 2019-05-06
- 0.10.0 (beta0100) — 2019-05-05
- 0.9.2 (beta092) — 2019-05-05
- 0.9.1 (beta091) — 2019-05-02
- 0.8.0 (beta080) — 2019-04-29
- 0.7.0 (beta070) — 2019-04-18
- … 10 more at https://npm.io/package/restaf-graphql-server/versions

## README

# restaf-graphql-server

The restaf-graphql-server is designed to work with SAS Vya. It uses three key open source projects"

1. [Apollo's graphql-server](https://www.apollographql.com/docs/apollo-server/)

2. [hapijs](https://hapijs.com)

3. [restaf](https://github.com/sassoftware/restaf)

The primary purposes of this respository are:

1. Hooks in Viya 3.4 authentication - uses authorization_code

2. Serve up user apps and/or graphql playground- convenient for deploying self-contained app

3. Setup restaf store for each user

See CHANGELOG.md for current and future features.



## Disclaimer

In this project I have chosen to use Apollo Server and hapijs - mainly due to my familiarity with these open source software libraries.  

## Installing the server as a dependency

```script
npm install restaf-graphql-server

```

Please see [restaf-graphql-demo](https://github.com/sassoftware/restaf-graphql-demo) for details on how to use this  server.

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