apollo-link

:link: Interface for fetching and modifying control flow of GraphQL requests

Github星跟踪图

apollo-link npm version Get on Slack

apollo-link is a standard interface for modifying control flow of GraphQL requests and fetching GraphQL results, designed to provide a simple GraphQL client that is capable of extensions.
The high level use cases of apollo-link are highlighted below:

  • fetch queries directly without normalized cache
  • network interface for Apollo Client
  • network interface for Relay Modern
  • fetcher for GraphiQL

The apollo link interface is designed to make links composable and easy to share, each with a single purpose. In addition to the core, this repository contains links for the most common fetch methods—http, local schema, websocket—and common control flow manipulations, such as retrying and polling. For a more detailed view of extended use cases, please see this list of community created links.

Installation

npm install apollo-link --save

To use apollo-link in a web browser or mobile app, you'll need a build system capable of loading NPM packages on the client.
Some common choices include Browserify, Webpack, and Meteor +1.3.

Documentation

To start, begin by reading this introduction. For a deeper understanding and to fully leverage the power of Apollo Links, please view the concepts overview. To see example links from around the community, check out this list. If you would like your link to be featured, please open a pull request.

Contributing

Apollo Link uses Lerna to manage multiple packages. To get started contributing, run npm run bootstrap in the root of the repository, which will install all dependencies and connect the dependent projects with symlinks in node_modules. Then run npm run build to compile the typescript source. Finally for incremental compilation, use npm run watch.

Your feedback and contributions are always welcome.

Apollo Principles

apollo-link strives to follow the Apollo design principles:

  1. Incrementally adoptable
  2. Universally compatible
  3. Simple to get started with
  4. Inspectable and understandable
  5. Built for interactive apps
  6. Small and flexible
  7. Community driven

Maintainers

主要指标

概览
名称与所有者apollographql/apollo-link
主编程语言TypeScript
编程语言TypeScript (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2017-06-07 16:39:32
推送于2023-04-14 11:28:06
最后一次提交2023-04-14 07:27:44
发布数462
最新版本名称zen-observable-ts@0.8.21 (发布于 2020-04-09 14:57:23)
第一版名称v0.0.1 (发布于 )
用户参与
星数1.4k
关注者数51
派生数342
提交数1.2k
已启用问题?
问题数351
打开的问题数162
拉请求数728
打开的拉请求数85
关闭的拉请求数159
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?