graphql-query-joiner:GraphQL库用于联接查询

时间:2021-05-10 07:33:47
【文件属性】:
文件名称:graphql-query-joiner:GraphQL库用于联接查询
文件大小:30KB
文件格式:ZIP
更新时间:2021-05-10 07:33:47
JavaScript 特征 所有GraphQL查询都在GET请求中运行。 所有GraphQL突变都在POST请求中运行。 多个同时的GraphQL查询被分组在同一请求中。 多个同时发生的GraphQL突变在同一请求中分组,保留顺序。 例子 import { parse } from "graphql" ; import { createClient , handleFetchResponse } from "@awardit/graphql-client" ; // Or use gql template strings or any other tool to compile these into AST const myQuery = parse ( `query { test }` ) ; const infoQuery = parse ( `query { info }` ) ; cons
【文件预览】:
graphql-query-joiner-master
----babel.config.cjs(509B)
----.flowconfig(236B)
----rollup.config.js(550B)
----src()
--------query.js(534B)
--------bundle.js(7KB)
--------client.js(6KB)
--------error.js(2KB)
--------index.js(254B)
----flow-typed()
--------ava.js(13KB)
----build()
--------stub()
----README.md(1KB)
----ava.config.js(282B)
----tests()
--------client.test.js(19KB)
--------bundle.test.js(4KB)
--------snapshots()
----.gitignore(79B)
----package.json(4KB)

网友评论