{"id":16989534,"url":"https://github.com/jottenlips/django-polls-graphene","last_synced_at":"2026-05-05T17:32:16.290Z","repository":{"id":101733136,"uuid":"315829333","full_name":"jottenlips/django-polls-graphene","owner":"jottenlips","description":"📊 Django Polls App with Graphene, Relay, and Dataloaders","archived":false,"fork":false,"pushed_at":"2020-12-03T00:33:47.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-03T09:33:20.430Z","etag":null,"topics":["dataloaders","demo","django","django-graphql","example","graphene","graphene-django","graphene-django-polls","graphql","graphql-server","nplus1","polls","python","relay"],"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/jottenlips.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"johnottenlips","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-11-25T04:33:03.000Z","updated_at":"2023-07-18T09:03:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"561e2efc-e112-4820-888e-eddca6626cdc","html_url":"https://github.com/jottenlips/django-polls-graphene","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jottenlips/django-polls-graphene","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Fdjango-polls-graphene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Fdjango-polls-graphene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Fdjango-polls-graphene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Fdjango-polls-graphene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jottenlips","download_url":"https://codeload.github.com/jottenlips/django-polls-graphene/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Fdjango-polls-graphene/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["dataloaders","demo","django","django-graphql","example","graphene","graphene-django","graphene-django-polls","graphql","graphql-server","nplus1","polls","python","relay"],"created_at":"2024-10-14T03:07:00.158Z","updated_at":"2026-05-05T17:32:16.267Z","avatar_url":"https://github.com/jottenlips.png","language":"Python","funding_links":["https://ko-fi.com/johnottenlips"],"categories":[],"sub_categories":[],"readme":"# Django Polls GraphQL 📊\n\nThis is a Django GraphQL App based on the Django Polls tutorial.\nI made this to experiment 🧪 with dataloaders and the relay pattern.\n\n## Run locally\n\nInstall Pipenv\n\nhttps://pypi.org/project/pipenv/\n\n`pipenv install`\n\n`cd django_graphene_data_loaders_demo`\n\n`pipenv run python manage.py migrate`\n\n`pipenv run python manage.py createsuperuser`\n\nGo to the Django admin, login, and add your questions and choices. `localhost:8000/admin`\n\n`pipenv run python manage.py runserver`\n\n## Query\n\nResolve question uses a dataloader for efficient querying.\n\n```\n{\n  choices {\n    edges {\n      node {\n        id\n        choiceText\n        votes\n      \tquestion {\n          id\n          questionText\n        }\n      }\n    }\n  }\n  # Debug your SQL\n  _debug {\n    sql {\n      rawSql\n    }\n  }\n}\n\n```\n\n## Mutation\n\n```\nmutation Vote($question: ID, $choice: ID) {\n  vote(questionGlobalId: $question, choiceGlobalId: $choice){\n    question {\n      id\n      choiceSet {\n        edges {\n          node {\n            id\n            votes\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nTODO:\n\n[] Frontend CRNA / Apollo\n\n[] Add auth and user types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjottenlips%2Fdjango-polls-graphene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjottenlips%2Fdjango-polls-graphene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjottenlips%2Fdjango-polls-graphene/lists"}