• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

babyfish-ct/graphql-ts-client: Typescript DSL for GraphQL.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

babyfish-ct/graphql-ts-client

开源软件地址(OpenSource Url):

https://github.com/babyfish-ct/graphql-ts-client

开源编程语言(OpenSource Language):

TypeScript 98.4%

开源软件介绍(OpenSource Introduction):

A new GraphQL client for TypeScript. it's TypeScript-DSL for GraphQL with full features.

  1. Supports GraphQL queries with strongly typed code.
  2. Automatically infers the type of the returned data according to the strongly typed query request, This is the essential difference between this framework and other similar frameworks, and it is also the reason why I created it.
  3. Because of point 2, unlike other client-side code generation tools and relay-compiler, the code generation work is one-time. Once the code is generated, it can be developed continuously until the server interface changes, without the need to generate code again and again.

Loading_GIF_Animation

Null & Undefined

For a long time, null and undefined have led to the differentiation of JavaScript/TypeScript development. This framework eliminates null and uniformly adopts undefined which is more friendly to TypeScript.

Get started

You can choose any of the following 4 ways

  • Step-by-step guide with nothing

  • Step-by-step guide with apollo-client

  • Step-by-step guide with relay

  • Step-by-step guide with graphql-state (Suggested)

    graphql-state is a collaborative framework tailored for graphql-ts-client, and is a complete react state management framework.

    • graphql-state is very smart. The essence of UI state is that one main mutation causes N extra mutations, the more complex the UI, the larger the N. graphql-state allows developer only focus on main mutation, all the extra mutations will be executed automatically. Compare with Apollo Client and Relay, after mutation, you neither need to update other affected data in the cache, nor need to determine which queries will be affected and need to be refetched.
    • graphql-state can map the REST service to GraphQL service on client-side, access REST service with GraphQL semantics, and enjoying syntactic sugar provided by graphql-ts-client.

Documentation

English Documentation | 中文文档

Notes

My npm packages are 'graphql-ts-client-api', 'graphql-ts-client-codegen' and 'graphql-ts-client-relay'. There is another package named 'graphql-ts-client' in npm repository, but that's not my framework.

Other projects:

graphql-provider: GraphQL server-side rapid development framework, if users use RDBMS to manage persistent data, it can help users to quickly build GraphQL services in the shortest time (based on kotlin and R2DBC)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
kamilkisiela/loona: 发布时间:2022-06-13
下一篇:
lachenmayer/graphql-scraper: Extract structured data from the web using GraphQL.发布时间:2022-06-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap