The Links in this repo have been migrated to the apollo-client project (as of >= @apollo/client@3.0.0
). Please refer to the Apollo Client migration guide for more details. All Apollo Link issues / pull requests should now be opened in the apollo-client repo.
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:
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.
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.
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.
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-link
strives to follow the Apollo design principles:
转载https://blog.csdn.net/qq_15028299 1. 技术归纳 A. 前端采用vue-apolo客户端发送fetch方式的gql请求,并与axios结合使用。 通过apollo-link-http来创建httpLink,通过apollo-link-error、apollo-link来控制请求的拦截和错误处理,ApolloClient来创建请求客户端。 B. 服务端增加了
简介 在百度Apollo中gflag被广泛的应用在各种全局变量中,例如节点名,变量名,各种状态标志中。 gflags 是google开源的一套命令行参数解析工具,比 getopt 功能更加强大,使用起来更加方便。 什么是 命令行参数解析工具 呢? 这里拿python做例子,例如:python test.py cmd1 cmd2 其中cmd1和cmd2 就是命令行参数,gflags就是用来解析cmd
@Value ,动态刷新 @ConfigurationProperties , 需要添加apollo配置监听器 @ApolloConfigChangeListener 实现动态刷新 参考:SpringBoot——》学习使用Apollo配置中心 一、配置 1、pom.xml <dependency> <groupId>com.ctrip.framework.apollo</groupId>
apollo for Taro taro-apollo 仿照 react-apollo 1.x版本 以及 taro-redux做的 graphql componet wrapper 安装 npm install taro-apollo --save yarn add taro-apollo 使用 初始化apollo client 这里我使用的是我的wx-apollo-fetcher 你可以使用自己
Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。 Swoft 基于 Apollo 提供的 API,在之上进行封装,使之能在 Swoft 中快速使用。 安装 swoft/whoops 作为一个额外的扩展组件,需要手动安装: Composer 安装 com
Apollo以ActiveMQ原型为基础,是一个更快、更可靠、更易于维护的消息代理工具。Apache称Apollo为最快、最强健的 STOMP(Streaming Text Orientated Message Protocol,流文本定向消息协议)服务器。 Apollo的特性如下: 支持Stomp 1.0和Stomp 1.1协议 主题和队列 队列浏览器 主题持久订阅 镜像队列 可靠的消息传递 消
Apollo-link-firebase apollo-link-firebase provides you a simple way to query Firebase in graphQL with Apollo-client without building a graphQL server Currently, we support features below: Query: All s
Apollo Client 是一个全功能的 GraphQL 客户端,用于 React 、Angular 的交互。允许你轻松通过 GraphQL 获取数据并构建 UI 组件。
Glimmer Apollo: Ember and Glimmer integration for Apollo Client. Documentation Visit glimmer-apollo.com to read the docs. Compatibility Apollo Client v3.0 or above GlimmerX v0.6 or above Node.js v12 o
Apollo Angular Apollo Angular allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs using the Angular framework. Apollo Angular may be used in any context t