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

steveluscher/zero-to-graphql: Examples of GraphQL endpoints created using variou ...

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

开源软件名称(OpenSource Name):

steveluscher/zero-to-graphql

开源软件地址(OpenSource Url):

https://github.com/steveluscher/zero-to-graphql

开源编程语言(OpenSource Language):

JavaScript 29.9%

开源软件介绍(OpenSource Introduction):

zero-to-graphql

In this repository, you will find examples of GraphQL endpoints created using various languages atop different frameworks. The goal is to demonstrate how you might go about creating a GraphQL endpoint atop your existing infrastructure, whatever that may be, without having to rewrite your data model.

Watch the original presentation

Zero to GraphQL in 30 Minutes – video

The examples' data model

Every example in this repository exposes a Person data model using an API considered idiomatic for the framework in question (eg. ActiveRecord for Rails). The type definition of the Person model looks like this:

type Person {
  id: String!
  first_name: String!
  last_name: String!
  username: String!
  email: String!
  friends: [Person]
}

Running the examples

Each example features its own README.md file to help you get up and running.

Contributing

See a language or framework for which there is no example? Feel free to send us a pull request! Expose the data model outlined above using whatever API you like, be sure to provide some seed data, and write a README that outlines all of the steps needed to get up and running with an instance of GraphiQL that you can use to issue queries to your new GraphQL endpoint.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
slicknode/graphql-query-complexity: GraphQL query complexity analysis and valida ...发布时间:2022-06-13
下一篇:
chenkie/graphql-auth发布时间:2022-06-12
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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