Apollo GraphQL
- Apollo Link HTTP Options
- graphql-meshGitHubUrigo/graphql-meshUrigo/graphql-mesh · MIT, Typescript · adapter for · gRPC, OpenAPI/Swagger, OData, SOAP/WSDL, Apache Thrift, Mongoose, PostgreSQL, Neo4j, GraphQL笔记:graphql-mesh
Installation
npm install apollo-boost @apollo/react-hooks graphql
# For subscriptions
yarn add apollo-link-ws subscriptions-transport-ws依赖包apollo-boostnpm 包apollo-boostNPM@apollo/react-hooksnpm 包@apollo/react-hooksNPMgraphqlnpm 包graphqlNPMapollo-link-wsnpm 包apollo-link-wsNPMsubscriptions-transport-wsnpm 包subscriptions-transport-wsNPM
WebSocket Link Example
const wsLink = new WebSocketLink(
new SubscriptionClient(WS_URL, {
reconnect: true,
timeout: 30000,
connectionParams: {
headers: {
Authorization: 'Bearer xxxxx',
},
},
}),
);关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- Urigo/graphql-meshgithub.com/Urigo/graphql-mesh
其他外链1 条
- www.apollographql.com/docs/link/links/httpwww.apollographql.com/docs/link/links/http