{"id":22127907,"url":"https://github.com/sashee/appsync-resolve-complex-types","last_synced_at":"2025-08-21T15:08:42.909Z","repository":{"id":138842104,"uuid":"500065836","full_name":"sashee/appsync-resolve-complex-types","owner":"sashee","description":"Sample code for how to resolve complex types with resolvers","archived":false,"fork":false,"pushed_at":"2022-06-06T08:15:04.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T08:41:18.114Z","etag":null,"topics":["appsync","aws","graphql"],"latest_commit_sha":null,"homepage":"https://advancedweb.hu/how-to-resolve-complex-types-with-appsync-resolvers/","language":"HCL","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/sashee.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":"2022-06-05T10:29:50.000Z","updated_at":"2023-05-01T13:58:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6047034-40a1-4b59-b2d6-a97fde37d97a","html_url":"https://github.com/sashee/appsync-resolve-complex-types","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sashee/appsync-resolve-complex-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashee%2Fappsync-resolve-complex-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashee%2Fappsync-resolve-complex-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashee%2Fappsync-resolve-complex-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashee%2Fappsync-resolve-complex-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sashee","download_url":"https://codeload.github.com/sashee/appsync-resolve-complex-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashee%2Fappsync-resolve-complex-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271499911,"owners_count":24770369,"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-08-21T02:00:08.990Z","response_time":74,"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":["appsync","aws","graphql"],"created_at":"2024-12-01T17:22:17.330Z","updated_at":"2025-08-21T15:08:42.885Z","avatar_url":"https://github.com/sashee.png","language":"HCL","readme":"# Sample code for how to resolve complex types with resolvers\n\n## Deploy\n\n* ```terraform init```\n* ```terraform apply```\n\n## Usage\n\nGet all groups with all users:\n\n```graphql\nquery MyQuery {\n  allGroups {\n    id\n    users {\n      name\n      id\n    }\n  }\n}\n```\n\nGet a group by id:\n\n```graphql\nquery MyQuery {\n  group(id: \"1\") {\n    id\n    users {\n      id\n      name\n    }\n  }\n}\n```\n\nGet a user by id:\n\n```graphql\nquery MyQuery {\n  user(id: \"1\") {\n    id\n    name\n  }\n}\n```\n\n## How it works\n\nAll 3 queries are resolved by a single Lambda function returning a complex structure that matches the GraphQL schema. Lists are returned as Arrays, and Types are Objects.\n\n## Cleanup\n\n* ```terraform destroy```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashee%2Fappsync-resolve-complex-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsashee%2Fappsync-resolve-complex-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashee%2Fappsync-resolve-complex-types/lists"}