https://github.com/sbussard/lambda-graphql-apex
A barebones graphql implementation using the apex framework.
https://github.com/sbussard/lambda-graphql-apex
apex apex-framework aws aws-lambda graphql
Last synced: 2 months ago
JSON representation
A barebones graphql implementation using the apex framework.
- Host: GitHub
- URL: https://github.com/sbussard/lambda-graphql-apex
- Owner: sbussard
- Created: 2017-07-03T19:52:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T19:52:46.000Z (about 9 years ago)
- Last Synced: 2025-06-29T10:04:42.796Z (about 1 year ago)
- Topics: apex, apex-framework, aws, aws-lambda, graphql
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# lambda-graphql-apex
Install [Apex](http://apex.run) and configure your [AWS Credentials](http://apex.run/#aws-credentials) then follow the instructions below.
Install NPM dependencies:
```
$ npm install
```
Initialize the function role:
```
$ apex init
```
*This creates a folder at `./functions/hello`. You should delete it.*
Add extra options from `project.json_stub` to generated `project.json` to include the runtime, handler and hook options.
Deploy the functions:
```
$ apex deploy
```
Try it out:
```
$ apex invoke graphql-example < event.json
```
AWS Resources that will be created:
- IAM role
- IAM policy
- Lambda function