【文件属性】:
文件名称:graphql-apigen:使用GraphQL模式生成Java API
文件大小:47KB
文件格式:ZIP
更新时间:2021-05-26 19:28:47
Java
Graphql-apigen
生成具有GraphQL模式的Java API,以促进“模式优先”开发。
帖子示例
创建一个文件来定义您的架构。 在此示例中,我们将创建schema/posts.graphql文件:
type Author @java ( package : " com.distelli.posts " ) {
id : Int ! # the ! means that every author object _must_ have an id
firstName : String
lastName : String
posts : [ Post ] # the list of Posts by this author
}
type Post @java ( package : " com.distelli.posts " ) {
【文件预览】:
graphql-apigen-master
----.gitignore(36B)
----Makefile(2KB)
----apigen()
--------src()
--------pom.xml(4KB)
----CONTRIBUTING.md(1KB)
----LICENSE(11KB)
----pom.xml(7KB)
----README.md(11KB)
----apigen-deps()
--------src()
--------pom.xml(3KB)