{"id":23768687,"url":"https://github.com/gabrielfu/graphqlpython","last_synced_at":"2026-04-13T13:32:26.757Z","repository":{"id":166454394,"uuid":"601981471","full_name":"gabrielfu/graphqlpython","owner":"gabrielfu","description":"Example GraphQL server with PostgreSQL db","archived":false,"fork":false,"pushed_at":"2023-02-16T07:30:24.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T14:46:37.891Z","etag":null,"topics":["fastapi","graphene","graphql","postgresql","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/gabrielfu.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,"zenodo":null}},"created_at":"2023-02-15T08:43:14.000Z","updated_at":"2023-02-15T15:13:02.000Z","dependencies_parsed_at":"2023-11-18T06:15:08.200Z","dependency_job_id":null,"html_url":"https://github.com/gabrielfu/graphqlpython","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielfu/graphqlpython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielfu%2Fgraphqlpython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielfu%2Fgraphqlpython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielfu%2Fgraphqlpython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielfu%2Fgraphqlpython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielfu","download_url":"https://codeload.github.com/gabrielfu/graphqlpython/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielfu%2Fgraphqlpython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31754926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fastapi","graphene","graphql","postgresql","python"],"created_at":"2025-01-01T01:38:51.748Z","updated_at":"2026-04-13T13:32:26.750Z","avatar_url":"https://github.com/gabrielfu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Server\nThis is a toy example of GraphQL FastAPI server for a modified version of \n[IMDB dataset](https://www.imdb.com/interfaces/), retrieved on 15 Feb 2023.\n\nThe backend database is a PostgreSQL db. \n\n## Usage\nRun server:\n```shell\ndocker-compose up --build -d\n```\n\nExample Query:\n```python\nimport requests\n\nurl = \"http://localhost:8000/graphql\"\nbody = \"\"\"\n{\n  actor (primaryName: \"Chris Hemsworth\") {\n    primaryName,\n    birthYear,\n    movies {\n      edges {\n        node {\n          primaryTitle,\n          region,\n          startYear,\n          runtimeMinutes,\n          averageRating,\n          numVotes\n        }\n      }\n    } \n  }\n}\n\"\"\"\nr = requests.post(url=url, json={\"query\": body})\nr.raise_for_status()\nr.json()\n\n# output:\n# {'data': {'actor': {'primaryName': 'Chris Hemsworth',\n#    'birthYear': 1983,\n#    'movies': {'edges': [{'node': {'primaryTitle': 'Thor: Ragnarok',\n#        'region': 'US',\n#        'startYear': 2017,\n#        'runtimeMinutes': 130,\n#        'averageRating': 7.9,\n#        'numVotes': 761413}},\n#      {'node': {'primaryTitle': 'The Cabin in the Woods',\n#        'region': 'US',\n#        'startYear': 2011,\n#        'runtimeMinutes': 95,\n#        'averageRating': 7.0,\n#        'numVotes': 425020}},\n#      {'node': {'primaryTitle': 'Avengers: Infinity War',\n#        'region': 'US',\n#        'startYear': 2018,\n#        'runtimeMinutes': 149,\n#        'averageRating': 8.4,\n#        'numVotes': 1094492}},\n#      {'node': {'primaryTitle': 'Avengers: Endgame',\n#        'region': 'US',\n#        'startYear': 2019,\n#        'runtimeMinutes': 181,\n#        'averageRating': 8.4,\n#        'numVotes': 1147208}}]}}}}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielfu%2Fgraphqlpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielfu%2Fgraphqlpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielfu%2Fgraphqlpython/lists"}