{"id":13770125,"url":"https://github.com/nfl/graphql-rxjava","last_synced_at":"2025-05-06T16:33:01.268Z","repository":{"id":57724721,"uuid":"45798673","full_name":"nfl/graphql-rxjava","owner":"nfl","description":"GraphQL RxJava","archived":false,"fork":false,"pushed_at":"2017-08-15T11:53:39.000Z","size":0,"stargazers_count":52,"open_issues_count":4,"forks_count":14,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-09T14:21:42.397Z","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/nfl.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":"2015-11-08T20:55:11.000Z","updated_at":"2024-03-31T14:16:56.000Z","dependencies_parsed_at":"2022-09-02T07:01:57.590Z","dependency_job_id":null,"html_url":"https://github.com/nfl/graphql-rxjava","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/nfl%2Fgraphql-rxjava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfl%2Fgraphql-rxjava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfl%2Fgraphql-rxjava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfl%2Fgraphql-rxjava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfl","download_url":"https://codeload.github.com/nfl/graphql-rxjava/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721090,"owners_count":21793750,"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-08-03T17:00:34.458Z","updated_at":"2025-05-06T16:33:00.978Z","avatar_url":"https://github.com/nfl.png","language":"Java","readme":"# graphql-rxjava\n\nThis is an execution strategy for [graphql-java](https://github.com/andimarek/graphql-java) that makes\nit easier to use rxjava's Observable. It currently requires Java8.\n\n[![Build Status](https://travis-ci.org/nfl/graphql-rxjava.svg)](https://travis-ci.org/nfl/graphql-rxjava)\n\n# Table of Contents\n\n- [Rx Hello World](#hello-world)\n- [License](#license)\n\n\n### Rx Hello World\n\nThis is the famous \"hello world\" in graphql-rxjava:\n\n```java\nimport graphql.schema.GraphQLObjectType;\nimport graphql.schema.GraphQLSchema;\n\nimport graphql.execution.RxExecutionStrategy;\nimport graphql.execution.RxExecutionResult;\n\nimport static graphql.Scalars.GraphQLString;\nimport static graphql.schema.GraphQLFieldDefinition.newFieldDefinition;\nimport static graphql.schema.GraphQLObjectType.newObject;\n\npublic class HelloWorld {\n\n    public static void main(String[] args) {\n\n        GraphQLObjectType queryType = newObject()\n                        .name(\"helloWorldQuery\")\n                        .field(newFieldDefinition()\n                                .type(GraphQLString)\n                                .name(\"hello\")\n                                .staticValue(Observable.just(\"world\")))\n                                .build())\n                        .build();\n\n        GraphQLSchema schema = GraphQLSchema.newSchema()\n                        .query(queryType)\n                        .build();\n\n        Observable\u003c?\u003e result = ((RxExecutionResult)new GraphQL(schema, new RxExecutionStrategy()).execute(\"{hello}\")).getDataObservable();\n\n        result.subscribe(System.out::println);\n        // Prints: {hello=world}\n    }\n}\n```\n\n### Getting started with gradle\n\nMake sure `mavenCentral` is among your repos:\n\n```groovy\nrepositories {\n    mavenCentral()\n}\n\n```\nDependency:\n\n```groovy\ndependencies {\n  compile 'com.graphql-java:graphql-rxjava:0.0.1'\n}\n\n```\n\n### License\n\ngraphql-rxjava is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n\nCopyright (c) 2015, NFL and [Contributors](https://github.com/nfl/graphql-java/graphs/contributors)\n\n[graphql-js License](https://github.com/graphql/graphql-js/blob/master/LICENSE)\n","funding_links":[],"categories":["Execution Strategies"],"sub_categories":["Code First"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfl%2Fgraphql-rxjava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfl%2Fgraphql-rxjava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfl%2Fgraphql-rxjava/lists"}