{"id":16635991,"url":"https://github.com/zaibacu/java-graphql-client","last_synced_at":"2025-07-18T16:32:49.297Z","repository":{"id":46027161,"uuid":"284046221","full_name":"zaibacu/java-graphql-client","owner":"zaibacu","description":"A client library to access GraphQL APIs","archived":false,"fork":false,"pushed_at":"2022-11-17T20:55:03.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T10:29:43.029Z","etag":null,"topics":["client","graphql","graphql-client","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/zaibacu.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}},"created_at":"2020-07-31T13:44:18.000Z","updated_at":"2024-01-12T18:14:33.000Z","dependencies_parsed_at":"2023-01-23T19:30:15.298Z","dependency_job_id":null,"html_url":"https://github.com/zaibacu/java-graphql-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaibacu%2Fjava-graphql-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaibacu%2Fjava-graphql-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaibacu%2Fjava-graphql-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaibacu%2Fjava-graphql-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaibacu","download_url":"https://codeload.github.com/zaibacu/java-graphql-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136059,"owners_count":20241985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["client","graphql","graphql-client","java"],"created_at":"2024-10-12T06:05:27.838Z","updated_at":"2025-03-12T00:29:49.803Z","avatar_url":"https://github.com/zaibacu.png","language":"Java","readme":"# Java GraphQL Client\n\nInteract with GraphQL API via Java. Nothing more, nothing less.\n\n# Quickstart\n\n## Install\n\nMaven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.zaibacu\u003c/groupId\u003e\n  \u003cartifactId\u003ejava-graphql-client\u003c/artifactId\u003e\n  \u003cversion\u003e1.2-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### Query\n\n```java\npublic class Example{\n    public List\u003cProduct\u003e fetchProducts(){\n        GraphqlClient client = GraphqlClient\n            .builder()\n            .withUrl(\"http://localhost:8000/graphql\")\n            .build();\n        \n        List\u003cProducts\u003e products = client\n            .query(\"products\")\n            .withParameter(\"category\", \"shoes\")\n            .withParameter(\"priceRange\", \"cheap\")\n            .execute(\"products\", Product.class);\n\n        return products;\n    }\n}\n```\n\nWhere `Product` is:\n\n```java\npublic class Product implements Serializable{\n    public String name;\n    public double price;\n    public String category;\n    public String priceRange;\n}\n```\n\n\n### Mutation\n\n```java\npublic class Example {\n    public void addProduct(Product product){\n        GraphqlClient client = GraphqlClient\n                    .builder()\n                    .withUrl(\"http://localhost:8000/graphql\")\n                    .build();\n        client\n            .mutate(\"addProduct\")\n            .withParameter(\"name\", \"test\")\n            .withParameter(\"price\", 42.0)\n            .withParameter(\"category\", \"shoes\")\n            .withParameter(\"priceRange\", \"cheap\")\n            .execute(\"products\");\n\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaibacu%2Fjava-graphql-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaibacu%2Fjava-graphql-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaibacu%2Fjava-graphql-client/lists"}