{"id":20169128,"url":"https://github.com/shikha-code36/graphql_fastapi","last_synced_at":"2026-04-07T14:02:30.730Z","repository":{"id":181665373,"uuid":"667072879","full_name":"Shikha-code36/GraphQL_FastAPI","owner":"Shikha-code36","description":"GraphQL implementation in FastAPI using Strawberry","archived":false,"fork":false,"pushed_at":"2023-07-16T18:04:23.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T14:44:21.458Z","etag":null,"topics":["fastapi","graphql","graphql-python","python","python3","strawberry-graphql","uvicorn"],"latest_commit_sha":null,"homepage":"https://pandeyshikha075.medium.com/building-a-graphql-api-with-fastapi-and-strawberry-71fb9e2ae2e9","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shikha-code36.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-16T14:52:49.000Z","updated_at":"2025-09-10T16:34:39.000Z","dependencies_parsed_at":"2023-07-16T18:40:18.727Z","dependency_job_id":null,"html_url":"https://github.com/Shikha-code36/GraphQL_FastAPI","commit_stats":null,"previous_names":["shikha-code36/graphql_fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shikha-code36/GraphQL_FastAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shikha-code36%2FGraphQL_FastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shikha-code36%2FGraphQL_FastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shikha-code36%2FGraphQL_FastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shikha-code36%2FGraphQL_FastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shikha-code36","download_url":"https://codeload.github.com/Shikha-code36/GraphQL_FastAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shikha-code36%2FGraphQL_FastAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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","graphql","graphql-python","python","python3","strawberry-graphql","uvicorn"],"created_at":"2024-11-14T01:11:29.535Z","updated_at":"2026-04-07T14:02:30.712Z","avatar_url":"https://github.com/Shikha-code36.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRUD Operation GraphQL FastAPI with MongoDB\n\nThis is a sample project that demonstrates a CRUD operation GraphQL API using FastAPI, MongoDB, and Strawberry.\n\n## Installation\n\n1. Clone the repository:\n```\ngit clone https://github.com/Shikha-code36/GraphQL_FastAPI.git\n\ncd GraphQL_FastAPI\n```\n\n2. Create and activate a virtual environment:\n```\npython3 -m venv venv\nsource venv/bin/activate # On Linux/MacOS\nvenv\\Scripts\\activate.bat # On Windows\n```\n3. Install dependencies using pip:\n```\npip install -r requirements.txt\n```\n\n## Usage\n\n1. Make sure your MongoDB server is running on `localhost` at the default port `27017`. You can use your MongoDB server instead of localhost.\n\n\n2. Start the FastAPI server:\n```\nuvicorn main:app --reload\n```\n\n3. The GraphQL API will be available at `http://localhost:8000/graphql`. You can access this URL in your browser or use tools like Insomnia or GraphQL Playground to interact with the API.\n\n## Test\n\nTo run the test cases, use the following command:\n\n```\npython -m pytest\n```\n\n\n## Examples\n\n### Create User\nTo create a new user, send a GraphQL mutation request:\n\n```graphql\nmutation {\n  createUser(name: \"Shikha Pandey\") {\n    id\n    name\n  }\n}\n```\n### Update User\nTo update a user, send a GraphQL mutation request:\n```\nmutation {\n  updateUser(id: 1, name: \"Kritika Pandey\") {\n    id\n    name\n  }\n}\n```\n### Delete User\nTo delete a user, send a GraphQL mutation request:\n```\nmutation {\n  deleteUser(id: 1) {\n    id\n    name\n  }\n}\n```\n### Get All Users\nTo get a list of all users, send a GraphQL query request:\n```\nquery {\n  users {\n    id\n    name\n  }\n}\n```\n### Get User by ID\nTo get a specific user by ID, send a GraphQL query request:\n```\nquery {\n  user(id: 1) {\n    id\n    name\n  }\n}\n```\n\n#### [Note:] Please adjust the URLs, ports, and API endpoints according to your setup.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Disclaimer\n\nThis project is a basic implementation of a graphql and python FastApi for educational purposes. It may not be suitable for production use. Use it at your own risk.\n\n## Contributing\n\nContributions to this project are welcome. If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikha-code36%2Fgraphql_fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshikha-code36%2Fgraphql_fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikha-code36%2Fgraphql_fastapi/lists"}