{"id":18865785,"url":"https://github.com/bitxon/java-spring-graphql","last_synced_at":"2026-05-01T21:33:43.557Z","repository":{"id":246703290,"uuid":"746354520","full_name":"bitxon/java-spring-graphql","owner":"bitxon","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-29T19:35:52.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T17:56:04.637Z","etag":null,"topics":["graphql","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","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/bitxon.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-01-21T20:03:16.000Z","updated_at":"2024-06-29T19:35:08.000Z","dependencies_parsed_at":"2024-06-29T20:52:24.807Z","dependency_job_id":null,"html_url":"https://github.com/bitxon/java-spring-graphql","commit_stats":null,"previous_names":["bitxon/java-spring-graphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitxon/java-spring-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitxon","download_url":"https://codeload.github.com/bitxon/java-spring-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32513714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["graphql","spring"],"created_at":"2024-11-08T05:04:35.997Z","updated_at":"2026-05-01T21:33:43.472Z","avatar_url":"https://github.com/bitxon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL with Spring Boot\n\n## Run application\n\nRun application with test context (auto start postgress)\n\n```shell\n./gradlew bootTestRun\n```\n\nNote: if you want to run the application from your IDE\\\nUse `RunLocalApplication`\n\n## Test application\n\nOpen [GraphiQL UI](http://localhost:8080/graphiql)\n\n\u003cdetails\u003e\n    \u003csummary\u003eGet Employee By Id\u003c/summary\u003e\n\n```graphql\nquery GetEmployeeById($id: ID!) {\n    employee(id: $id) {\n        id\n        name\n        email\n        organization {\n            name\n        }\n    }\n}\n```\n```json\n{\"id\": \"1\"}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eGet All Employees\u003c/summary\u003e\n\n```graphql\nquery GetAllEmployees {\n    employees {\n        id\n        name\n        email\n        organization {\n            name\n        }\n    }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eGet Organization By Id\u003c/summary\u003e\n\n```graphql\nquery GetOrganizationById($id: ID!) {\n    organization(id: $id) {\n        id\n        name\n        employees {\n            name\n        }\n    }\n}\n```\n```json\n{\"id\": \"1\"}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eGet All Organizations With Pagination\u003c/summary\u003e\n\n```graphql\nquery GetAllOrganizations($first: Int, $after: String, $last: Int, $before: String) {\n    organizations(first: $first, after: $after, last: $last, before: $before) {\n        pageInfo {\n            hasNextPage\n            endCursor\n        }\n        edges {\n            node {\n                id\n                name\n                employees {\n                    name\n                }\n            }\n        }\n    }\n}\n```\n```json\n{\"first\": 5}\n```\n\u003c/details\u003e\n\n\u003cbr\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eCreate Employee\u003c/summary\u003e\n\n```graphql\nmutation CreateEmployee($name: String!, $email: String!, $organizationId: Int!) {\n    createEmployee(employee: { name: $name, email: $email, organizationId: $organizationId}) {\n        id\n        name\n        email\n    }\n}\n```\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john.doe@email.com\",\n  \"organizationId\": 3\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eCreate Organization\u003c/summary\u003e\n\n```graphql\nmutation CreateOrganization($name: String!) {\n    createOrganization(name: $name) {\n        id\n        name\n    }\n}\n```\n```json\n{\"name\": \"Organization Test Name\"}\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxon%2Fjava-spring-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitxon%2Fjava-spring-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxon%2Fjava-spring-graphql/lists"}