Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 417 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 417 Bytes

wx-apollo-fetcher

在微信小程序中使用apollo client所需要的fetcher

安装

npm install wx-apollo-fetcher --save

或者

yarn add wx-apollo-fetcher

使用

import { createHttpLink } from "apollo-link-http"; // 或者 apollo-link-batch-http
import wxApolloFetcher from "wx-apollo-fetcher";

const link = createHttpLink({ 
    uri: "xxxxx",
    fetch: wxApolloFetcher,
});