{"id":24069544,"url":"https://github.com/omega-r/omegagraphql","last_synced_at":"2025-02-26T20:44:42.391Z","repository":{"id":84896813,"uuid":"132467693","full_name":"Omega-R/OmegaGraphQL","owner":"Omega-R","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-08T08:14:46.000Z","size":145,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T23:26:34.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Omega-R.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-07T13:52:55.000Z","updated_at":"2020-01-17T15:34:23.000Z","dependencies_parsed_at":"2023-03-15T22:45:39.296Z","dependency_job_id":null,"html_url":"https://github.com/Omega-R/OmegaGraphQL","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/Omega-R%2FOmegaGraphQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omega-R%2FOmegaGraphQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omega-R%2FOmegaGraphQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omega-R%2FOmegaGraphQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omega-R","download_url":"https://codeload.github.com/Omega-R/OmegaGraphQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240934412,"owners_count":19880991,"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":"2025-01-09T14:58:21.862Z","updated_at":"2025-02-26T20:44:42.368Z","avatar_url":"https://github.com/Omega-R.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/Omega-R/OmegaGraphQl.svg)](https://jitpack.io/#Omega-R/OmegaGraphQl)\n[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)\n\n# OmegaGraphQl\nThis is a GraphQL Java implementation.\n\n# Installation\nTo get a Git project into your build:\n\n**Step 1.** Add the JitPack repository to your build file\n```\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n**Step 2.** Add the dependency\n```\ndependencies {\n    compile 'com.github.Omega-R:OmegaGraphQl:0.0.2'\n}\n```\n# Usage\n\n```\npublic class EventData {\n\n    @Expose\n    @SerializedName(\"event\")\n    private Event event;\n    \n}\n```\n\n```\npublic class Event {\n\n    @Expose\n    @SerializedName(\"address\")\n    private String address;\n\n    @Expose\n    @SerializedName(\"currency\")\n    private String currency;\n\n    @Expose\n    @SerializedName(\"title\")\n    private String title;\n\n    public static class Query implements QueryParams {\n\n        @GraphQlQuery(\"id\")\n        private String id;\n\n        public Query(String id) {\n            this.id = id;\n        }\n\n        @Nullable\n        @Override\n        public Object getFieldQuery(Class\u003c?\u003e cls, String fieldName) {\n            if (cls.equals(Event.class)) {\n                return this;\n            }\n            return null;\n        }\n\n        @Override\n        public boolean isHideField(Field field, String fieldName) {\n            return false;\n        }\n\n        @Override\n        public boolean isNeedQueryField() {\n            return true;\n        }\n\n        @Override\n        public Class getTargetClass() {\n            return EventData.class;\n        }\n    }\n}\n```\n\nRetrofit Api\n```\npublic interface RetrofitApi {\n\n    @POST(\"https://www.universe.com/graphql\")\n    Call\u003cData\u003e requestEventData(@Body GraphQlJsonRequestBody queryObject);\n\n}\n```\n\nMake request\n\n```\nGraphQlJsonRequestBody requestBody = GraphQlJsonRequestBody.from(new Event.Query(\"5879ad8f6672e70036d58ba5\"));\ngetRetrofitApi().requestEventData(requestBody).enqueue(....);\n```\n\n\n\n# License\n```\nThe MIT License\n\nCopyright 2018 Omega-R\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, \nincluding without limitation the rights to use, copy, modify, merge, publish, distribute, \nsublicense, and/or sell copies of the Software, and to permit persons to whom the Software is \nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. \nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE \nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomega-r%2Fomegagraphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomega-r%2Fomegagraphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomega-r%2Fomegagraphql/lists"}