1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/ts_ohos-ohos_apollo

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
dusky_duansy Отправлено 07.07.2021 13:26 e6dea1f

apollo-android

Synopsis

Apollo HarmonyOS is a GraphQL client that generates Java models from GraphQL queries. These models give you a type-safe API to work with GraphQL servers. Apollo helps you keep your GraphQL query statements together, organized, and easy to access. his library is designed primarily with HarmonyOS in mind, but you can use it in any Java app.

Features

  • Java code generation
  • Queries, Mutations and Subscriptions
  • Reflection-free parsing of responses
  • HTTP cache
  • Normalized cache
  • File uploads
  • Custom scalar types
  • Support for RxJava2, RxJava3, Coroutines and Reactor

Getting started

If you are new to GraphQL, check out the tutorial that will guide you through building an HarmonyOS app using Apollo, Java and coroutines.

If you'd like to add Apollo HarmonyOSto an existing project:

  • Get started with Java shows how to add Apollo HarmonyOS to a Java project.

Get started with Multiplatform (Experimental) shows how to add Apollo HarmonyOS to a Multiplatform project. This is still under heavy development and APIs may change without warning.

Advanced topics

Check the project website for in depth documentation about caching, plugin configuration, android, file upload, coroutines, rxjava2, rxjava3, persisted queries, no runtime, migrations and much more...

IntelliJ Plugin

The JS Graphql IntelliJ Plugin provides auto-completion, error highlighting, and go-to-definition functionality for your .graphql files. You can create a .graphqlconfig file to use GraphQL scratch files to work with your schema outside product code (such as to write temporary queries to test resolvers).

Releases

  • The latest version is Maven Central
  • Check the changelog for the release history.
  • Releases are hosted on Jcenter and Maven Central. The plugin is additionally hosted on the Gradle Plugin Portal
repositories {
  mavenCentral()
}

dependencies {
  implementation("com.gitee.ts_ohos:apollo_runtime:1.0.0")
  implementation("com.gitee.ts_ohos:apollo_rxhos:1.0.0")
}

Snapshots

Latest development changes are available in Sonatype's snapshots repository:

repositories {
  maven { 
    url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
  }
}

Snapshots

Apollo HarmonyOS runs on the following platforms: HarmonyOS API level 4+

Who is Apollo?

  • Apollo Graph, Inc. creates industry-leading tools for building applications with GraphQL:
  • Apollo Client – The most popular GraphQL client for the web. Apollo also builds and maintains Apollo iOS and Apollo HarmonyOS.
  • Apollo Server – Build a production-ready JavaScript GraphQL server with a schema-first approach.
  • Apollo Studio – A turnkey portal for GraphQL developers, featuring a powerful GraphQL IDE (the Apollo Explorer), metrics reporting, schema search, and documentation.
  • Apollo Federation – Create and manage a single data graph composed of subgraphs that can be developed independently.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/ts_ohos-ohos_apollo.git
git@api.gitlife.ru:oschina-mirror/ts_ohos-ohos_apollo.git
oschina-mirror
ts_ohos-ohos_apollo
ts_ohos-ohos_apollo
master