graphQLQuery:一个针对graphQL端点的简单Lib

时间:2024-05-28 11:48:14
【文件属性】:

文件名称:graphQLQuery:一个针对graphQL端点的简单Lib

文件大小:5KB

文件格式:ZIP

更新时间:2024-05-28 11:48:14

JavaScript

特征 JS中非常简单的GraphQL客户端 建造 NodeJS(已通过v7.7.1测试) 例子 作为基于查询对象的请求(./examples/example2.js) const endpoint = "https://api.graphloc.com/graphql"; const apiClient = graphqlQuery.client(endpoint); const data = { getLocation: { args: { ip: "189.59.228.170" }, country: { fields: ["geoname_id", "iso_code"], names: { fields: ["en"] } }, location: { fields: ["lat


【文件预览】:
graphQLQuery-master
----lib()
--------index.js(3KB)
----examples()
--------example2.js(510B)
--------example1.js(431B)
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(931B)
----package.json(386B)

网友评论