graphql-js-client:中继兼容的GraphQL客户端

时间:2024-05-19 18:24:20
【文件属性】:

文件名称:graphql-js-client:中继兼容的GraphQL客户端

文件大小:617KB

文件格式:ZIP

更新时间:2024-05-19 18:24:20

JavaScript

graphql-js-client 功能轻便的客户端库,用于通过GraphQL获取资源。 目录 安装 使用纱线: $ yarn add graphql-js-client 使用NPM: $ npm install graphql-js-client 例子 GraphQLClient需要一个“类型捆绑包”,它是由生成的一组ES6模块,它们代表您的GraphQL模式。 初始化 import GraphQLClient from 'graphql-js-client' ; // This is the generated type bundle from graphql-js-schema import types from './types.js' ; const client = new GraphQLClient ( types , { url : 'https://graph


网友评论