{"id":22831515,"url":"https://github.com/phrase/sls-gql-example","last_synced_at":"2025-03-31T01:50:31.044Z","repository":{"id":150336943,"uuid":"186579224","full_name":"phrase/sls-gql-example","owner":"phrase","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-07T01:06:13.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T07:13:11.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phrase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T08:30:26.000Z","updated_at":"2019-06-26T14:55:41.000Z","dependencies_parsed_at":"2023-04-04T15:02:03.026Z","dependency_job_id":null,"html_url":"https://github.com/phrase/sls-gql-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrase%2Fsls-gql-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrase%2Fsls-gql-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrase%2Fsls-gql-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrase%2Fsls-gql-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phrase","download_url":"https://codeload.github.com/phrase/sls-gql-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403903,"owners_count":20771527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T20:26:23.271Z","updated_at":"2025-03-31T01:50:31.007Z","avatar_url":"https://github.com/phrase.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sls-gql\n\nExample to use GraphQL as an API for AWS Lambda.\n\n## Setup\n\n* Install go-bindata from https://github.com/go-bindata/go-bindata\n* Install serverless framework: `yarn global add yarn` or `npm install -g serverless`\n* make sure you have AWS credentials (e.g. `AWS_ACCESS_KEY_ID`,\n\t`AWS_SECRET_ACCESS_KEY`) in your ENV.\n* `make deploy`\n\n## Schema Updates\n\nThe schema can be found at `graphql/schema.gql` but in the code the inlined\nversion is used (via go-bindata). When you update the schema you also need to\neither run `make schemagen` or `go generate ./...`.\n\n## Execute query via invoke\n\n### Without variables\n\tsls invoke -f graphql  --data '{\"query\":\"query { hello } \"}'\n\n### With variables\n\n```\nsls invoke -f graphql \u003c\u003cEOF\n{\n  \"query\": \"query q(\\$msg:String!) { hello(msg:\\$msg) }\",\n  \"variables\": {\n    \"msg\": \"World\"\n  }\n}\nEOF\n```\n\n## Teardown\n\n* `sls remove`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrase%2Fsls-gql-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrase%2Fsls-gql-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrase%2Fsls-gql-example/lists"}