# openscript graphql service

The graphql service is using the apollo-server (serverless) implementation. Checkout the package [apollo-server-lambda](https://www.npmjs.com/package/apollo-server-lambda) and the usage [guide](https://www.apollographql.com/docs/apollo-server/v1/servers/lambda.html).

For development we prefer the graphql client chrome extension [altair-graphql-client](https://chrome.google.com/webstore/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja) but there are other nice alternatives.

## Installation

```
npm install
```

## Deployment

```
sls deploy -r eu-central-1 -s <stage>
```

## Folder structure

- handlers

> The exposed functions used as API graphql endpoint handlers

- schema

> The graphql schema type definitions, also used for contract testing

- resolvers

> The implemented and registered graphql resolvers