ashramsey / apollo-server-lambda

Apollo sever lambda v3 with graphql-modules v1 and schema-directives (@graphql-tools/schema v9)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo Server Lambda

Based off of: https://www.apollographql.com/docs/apollo-server/deployment/lambda/

run using invoke local:

sls invoke local -f graphql -p query.json

run offline and post queries via Insomnia or curl:

sls offline start

curl --request POST
--url http://localhost:3000/dev/foo
--header 'Content-Type: application/json'
--cookie '__profilin=p%253Dt; JSESSIONID=EA0B2ED954EC39BE2C489125CC24043B'
--data '{ "query": "query GreetingQuery ($arg1: String) { hello (name: $arg1) { value } }", "operationName": "GreetingQuery", "variables": { "arg1": "Timothy" } }'

foo

About

Apollo sever lambda v3 with graphql-modules v1 and schema-directives (@graphql-tools/schema v9)


Languages

Language:TypeScript 100.0%