wechatmp-batch-graphql
Query Batching in Wechat Mini Program
Examples
const graphql = uri: '/graphqls' const query1 = gql`query getProduct($id: ID!) { node(id: $id) { ... on Product { description } }}`const query2 = gql`query chineseRegions { chineseRegions { code name }}`graphql graphql // query1 and query2 it will send in one request
Install
// use yarnyarn add wechatmp-batch-graphql// use npmnpm install wechatmp-batch-graphql
License
Thanks
Heavily inspired by nanographql