go graphql demo:使用gqlgen和gochi路由器将graphql与golang一起使用的示例应用程序 源码
初始化模块 转到mod init :shubham-v / go-graphql-demo.git 初始化graphql 去运行github.com/99designs/gqlgen init 从graphqls生成解析器 去运行github.com/99designs/gqlgen生成 Postgres驱动程序 去获取-u github.com/jackc/pgx/v4 用于迁移的Postgres标签 去构建-tags'postgres'-ldflags =“-X main.Version = 1.0.0” -o $ GOPATH / bin / migrate github.com/g
下载地址
用户评论