Skip to content

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

Notifications You must be signed in to change notification settings

kdong007/wx-apollo-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
});

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published