{"id":23002558,"url":"https://github.com/andriest/graphql-api","last_synced_at":"2026-05-04T05:46:37.715Z","repository":{"id":267385271,"uuid":"901082067","full_name":"andriest/graphql-api","owner":"andriest","description":"graphql-api is a GraphQL API built with Rust using the juniper library. This project is designed to provide a robust and efficient GraphQL server with support for database integration via diesel.","archived":false,"fork":false,"pushed_at":"2024-12-10T02:45:28.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T14:21:46.565Z","etag":null,"topics":["crud-api","diesel-cli","graphql","juniper","rust","rust-language-server"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/andriest.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":"2024-12-10T02:26:48.000Z","updated_at":"2024-12-10T02:54:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"79da4d8c-c796-4d8a-a8c3-f76d53f63747","html_url":"https://github.com/andriest/graphql-api","commit_stats":null,"previous_names":["andriest/graphql-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andriest/graphql-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriest%2Fgraphql-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriest%2Fgraphql-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriest%2Fgraphql-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriest%2Fgraphql-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andriest","download_url":"https://codeload.github.com/andriest/graphql-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriest%2Fgraphql-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32596533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["crud-api","diesel-cli","graphql","juniper","rust","rust-language-server"],"created_at":"2024-12-15T07:11:23.726Z","updated_at":"2026-05-04T05:46:37.699Z","avatar_url":"https://github.com/andriest.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-api\n\ngraphql-api is a GraphQL API built with Rust using the juniper library. This project is designed to provide a robust and efficient GraphQL server with support for database integration via diesel.\n\n## Features\n\n- GraphQL API: Built using juniper for defining queries, mutations, and schema.\n- Database Integration: Uses diesel as the ORM for database queries.\n- Async Server: Powered by actix-web for efficient request handling.\n\n## Prerequisites\n\nTo run this project, you’ll need the following installed:\n\n- Rust (latest stable version)\n- Diesel CLI (for managing database migrations)\n- A database (e.g., PostgreSQL, SQLite, or MySQL)\n\n## Installation\n\n1. Setup the environment variables:\n\n   `cp .env.example .env`\n\n   env\n   `DATABASE_URL=postgres://username:password@localhost/graphql_db`\n\n2. Run database migrations:\n\n   ```\n   diesel setup\n   diesel migration run\n   ```\n\n3. Build and run the server:\n\n   `cargo run`\n\n## Usage\n\nStarting the Server\n\nThe server runs by default on http://127.0.0.1:8080/playground.\n\n### Example Queries\n\n#### Query Example\n\n```\nquery {\n  getById(id: 1) {\n    id\n    nickname\n  }\n}\n```\n\n#### Mutation Example\n\n```\nmutation {\n  updateAccount(id: 1, data: { nickname: \"Updated Name\" })\n}\n```\n\nYou can test these queries using tools like [Postman](https://www.postman.com/) or [GraphQL Playground](https://www.apollographql.com/docs/apollo-server/testing/graphql-playground/).\n\n## Technologies Used\n\n- Rust: High-performance systems programming language.\n- Juniper: GraphQL library for Rust.\n- Diesel: ORM for database queries and migrations.\n- Actix-Web: Web framework for building the HTTP server.\n\n## Acknowledgments\n\n- Juniper for enabling GraphQL in Rust.\n- Diesel for powerful database management.\n- Actix-Web for its high-performance server framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandriest%2Fgraphql-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandriest%2Fgraphql-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandriest%2Fgraphql-api/lists"}