{"id":18806926,"url":"https://github.com/buma/graphqlgenerator","last_synced_at":"2026-01-08T21:30:29.908Z","repository":{"id":148413953,"uuid":"50568951","full_name":"buma/GraphQlGenerator","owner":"buma","description":"Java GraphQL schema generator from Java classes","archived":false,"fork":false,"pushed_at":"2016-01-28T08:49:31.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T21:28:21.004Z","etag":null,"topics":[],"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/buma.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":"2016-01-28T08:41:45.000Z","updated_at":"2023-08-07T06:32:11.000Z","dependencies_parsed_at":"2023-04-22T10:44:35.176Z","dependency_job_id":null,"html_url":"https://github.com/buma/GraphQlGenerator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FGraphQlGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FGraphQlGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FGraphQlGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FGraphQlGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buma","download_url":"https://codeload.github.com/buma/GraphQlGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742416,"owners_count":19689309,"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":[],"created_at":"2024-11-07T22:50:01.613Z","updated_at":"2026-01-08T21:30:24.420Z","avatar_url":"https://github.com/buma.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQLGenerator\n\nIt is generator for GraphQL schema from Java classes. It is expected that code will use [graphql-java](https://github.com/andimarek/graphql-java).\n\nIt is in working, but usage and code can be improved.\nTo use it you need to edit Main.java and fill typeMap.\nTypeMap is map from java class name to the name you want GraphQL object to have.\nEach new object needs to be in it. Unless it is scalar (integer, short, float, double, boolean, char).\n\nThen you need to call ReadClass or ReadEnum with typeMap and call readFile with path to wanted java file. It prints resulting GraphQL.\n\nReadClass can be used to read classes which will be objects or operations. In that case you need to call ReadClass with second parameter to true).\n\nIn java classes it reads:\n* class comments as object description\n* public variables\n* Comments before each variable (this is description in GraphQL)\n\t* here it also supports @notnull\n\t* and @default: if class is used as GraphQL operation\n* it also adds datafetcher that calls public variable\n\nIn enums it reads:\n* enum comments as object description\n* enum values comments as value description\n* Value and text value\n\n## Future wishes:\n* prettier code\n* better documentation\n* ability to add root java file and it automatically generates Graphql code for it and all its dependencies\n* nicer templates\n* Support for getters not only public variables\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuma%2Fgraphqlgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuma%2Fgraphqlgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuma%2Fgraphqlgenerator/lists"}