Latest 1.0.0
Homepage https://github.com/OhKanghoon/RxApolloClient
License MIT
Platforms ios 9.0
Dependencies RxSwift, Apollo
Authors

CI Status
Version
License
Platform

Get Started

  1. Install Apollo
    $ npm install -g apollo 1.9.2
  2. Fetch Scheme & Generate API Code

    get_gql.sh

    cd ____ # project folder
    apollo schema:download _______/schema.json --endpoint=__________ # scheme.json location  / end point url
    apollo codegen:generate --queries="$(find . -name '*.graphql')" --schema=_______/schema.json _______/GraphQLAPI.swift # scheme.json location / generated API code location
    $ sh get_gql.sh

Dependencies

Requirements

  • Xcode 10.0
  • Swift 5

Installation

RxApolloClient is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RxApolloClient'

Usage

Fetch

client.rx
  .fetch(query: SearchRepositoriesQuery(query: "test"))

Watch

client.rx
  .watch(query: SearchRepositoriesQuery(query: "test"))

Mutate

client.rx
  .perform(mutation: AddStarMutation(id: "test"))

Example

Author

OhKanghoon, [email protected]

License

RxApolloClient is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxApolloClient",
    "version": "1.0.0",
    "summary": "Rx wrapper of Apollo Client",
    "description": "RxSwift extensions for Apollo Client",
    "homepage": "https://github.com/OhKanghoon/RxApolloClient",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "OhKanghoon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OhKanghoon/RxApolloClient.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "RxApolloClient/Classes/**/*",
    "dependencies": {
        "RxSwift": [
            ">= 5.0"
        ],
        "Apollo": [
            ">= 0.10.1"
        ]
    }
}

Pin It on Pinterest

Share This