remote-func:JavaScript作为API的查询语言

时间:2024-06-05 23:15:49
【文件属性】:

文件名称:remote-func:JavaScript作为API的查询语言

文件大小:138KB

文件格式:ZIP

更新时间:2024-06-05 23:15:49

nodejs api graphql http typescript

工作正在进行中 遥控功能 JavaScript作为API的查询语言 远程功能允许使用JavaScript的子集作为API的查询语言。 例子: const getBlogEntry = bind ( client , func ( `async (id) => { const blog = await blogService.find(id) return { name: blog.name, content: blog.content } }` ) ) getBlogEntry ( ) . then ( ... ) 主要特征 比GraphQL快两倍。 JavaScript作为查询语言。 一次获取多个资源。 允许在将响应发送到客户端之前减少数据。 批量和重复数据删除请求。 在单个HTTP响应中将数据从服务器流传输到客户端,并按到达顺序进行分发。


【文件预览】:
remote-func-master
----client()
--------handlers()
--------func.ts(3KB)
--------json-stream.ts(2KB)
--------index.ts(136B)
--------client.ts(5KB)
--------message.ts(250B)
--------util.ts(649B)
----benchmark()
--------run.ts(2KB)
--------graphql-server.ts(710B)
--------package.json(618B)
--------readme.md(146B)
--------package-lock.json(71KB)
--------remote-func-server.ts(302B)
--------run-concurrency.ts(6KB)
--------data.json(233B)
--------api.ts(532B)
----server()
--------handlers()
--------rpc.ts(647B)
--------partial-func.ts(487B)
--------service.ts(2KB)
--------engine.ts(5KB)
--------cache.ts(2KB)
--------http.ts(3KB)
--------index.ts(173B)
--------util.ts(3KB)
--------error.ts(424B)
----bin()
--------remote-func.ts(429B)
----docs()
--------query-function.md(2KB)
--------client.md(781B)
----package.json(2KB)
----readme.md(7KB)
----.github()
--------workflows()
----tsconfig.nodejs.json(237B)
----LICENSE(1KB)
----package-lock.json(208KB)
----.npmignore(165B)
----tsconfig.browser.json(218B)
----tsconfig.json(6KB)
----examples()
--------simple()
--------secured-endpoint()
--------store.json(5KB)
--------type-safe()
----spec()
--------util.spec.ts(2KB)
--------services.spec.ts(2KB)
--------end-to-end.spec.ts(6KB)
--------client.spec.ts(3KB)
--------support()
--------engine.spec.ts(3KB)
--------json-stream.spec.ts(1KB)
--------cfunc.spec.ts(3KB)
--------cache.spec.ts(563B)
--------fixtures()
----.gitignore(79B)
----cfunc()
--------compiler.ts(656B)
--------plugin-runtime.ts(8KB)
--------runtime.ts(4KB)
--------cfunc.ts(4KB)
--------plugin-globals.ts(646B)
--------plugin-subset.ts(712B)
--------javascript-subset.txt(618B)
--------types-extractor.ts(815B)
--------index.ts(24B)
--------util.ts(2KB)
----dev-tools()
--------babel-plugin.ts(3KB)
--------extract-dts.ts(3KB)
----tsconfig.amd.json(214B)

网友评论