{"id":26403571,"url":"https://github.com/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider","last_synced_at":"2025-09-02T20:47:41.897Z","repository":{"id":42065146,"uuid":"418943948","full_name":"fossamagna/amplify-appsync-resolver-nodejs-function-template-provider","owner":"fossamagna","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-25T14:37:39.000Z","size":189,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T16:29:16.902Z","etag":null,"topics":["aws-amplify","aws-appsync","aws-lambda","graphql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fossamagna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-10-19T13:48:21.000Z","updated_at":"2025-08-11T14:48:31.000Z","dependencies_parsed_at":"2024-04-06T03:25:32.602Z","dependency_job_id":"bcd1e881-61a0-4e00-8684-184a79f8623a","html_url":"https://github.com/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fossamagna","download_url":"https://codeload.github.com/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273348268,"owners_count":25089595,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws-amplify","aws-appsync","aws-lambda","graphql"],"created_at":"2025-03-17T15:34:28.846Z","updated_at":"2025-09-02T20:47:41.839Z","avatar_url":"https://github.com/fossamagna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Amplify AppSync Resolver NodeJS function templates plugin\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nThis project is amplify plugin Node.js function template for AppSync Lambda Resolver.\n\nFor additional details on Lambda resolvers, see the AWS Amplify CLI API(GraphQL) [docs](https://docs.amplify.aws/cli/graphql-transformer/function).\n\n\n## Getting Started\n\nThis is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n### Prerequisites\n\nFirst, install AWS Amplify CLI using npm (we assume you have pre-installed node.js).\n\n```sh\nnpm install -g @aws-amplify/cli\n```\n\n### Installation\n\n1. Install NPM packages\n   ```sh\n   npm install -g amplify-appsync-resolver-nodejs-function-template-provider\n   ```\n2. Enable this plugin\n   ```sh\n   amplify plugin scan\n   ```\n\nFor additional details on plugins, see the AWS Amplify CLI plugins [docs](https://docs.amplify.aws/cli/plugins/plugins).\n\n## Usage\n\nOnce installed, you can use this plugin to generate Amplify AppSync Lambda resolvers for you:\n\n- Run `amplify add function` to add a new Lambda Resolver to AppSync API.\n  ![Usage](https://user-images.githubusercontent.com/1638848/142107458-0a949a22-0c7b-46a4-ba35-2f6fd8ce5692.gif)\n\n- Edit `schema.graphql`, to relate selected fields in the previous step to `@function` directive.\n  ```graphql\n  type Blog @model {\n    id: ID!\n    name: String! @function(name: \"resolver-${env}\") # added here\n    posts: [Post] @connection(keyName: \"byBlog\", fields: [\"id\"])\n  }\n\n  type Post @model @key(name: \"byBlog\", fields: [\"blogID\"]) {\n    id: ID!\n    title: String! @function(name: \"resolver-${env}\") # added here\n    blogID: ID!\n    blog: Blog @connection(fields: [\"blogID\"])\n    comments: [Comment] @connection(keyName: \"byPost\", fields: [\"id\"])\n  }\n\n  type Comment @model @key(name: \"byPost\", fields: [\"postID\", \"content\"]) {\n    id: ID!\n    postID: ID!\n    post: Post @connection(fields: [\"postID\"])\n    content: String!\n  }\n  ```\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the Apache-2.0 License. See `LICENSE` for more information.\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nMasahiko MURAKAMI - [@fossamagna](https://twitter.com/fossamagna)\n\nProject Link: [https://github.com/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider](https://github.com/fossamagna/amplify-appsync-resolver-nodejs-function-template-provider)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffossamagna%2Famplify-appsync-resolver-nodejs-function-template-provider/lists"}