go-graphql:Golang,GraphQL和MongoDB

时间:2021-05-17 09:48:34
【文件属性】:
文件名称:go-graphql:Golang,GraphQL和MongoDB
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-17 09:48:34
graphql golang mongodb Go Golang,GraphQL和MongoDB 测试在Go和MongoDB中实现的GraphQL API 去做 列出所有作者 列出所有剧集 创建突变 授权 迁移到无服务器 指令 该应用程序公开了一个端点'/ graphql',它既接受查询又接受突变 获取所有字段 curl --request POST \ --url http://localhost:3000/graphql \ --header 'content-type: application/json' \ --data '{"query":"{\n\tauthor(id: \"5b071dc428c1e324878952b7\"){\n\t\tid, name, age\n\t}\n\t\n\tepisode(id: \"5b0723d828c1e33e9e3d8baf\"){\n\t\tid, title\n\t
【文件预览】:
go-graphql-master
----main.go(570B)
----README.md(2KB)
----.gitignore(31B)
----gql()
--------fields()
--------db()
--------resolvers()
--------types()
--------query.go(300B)
--------schema.go(153B)
--------mutation.go(310B)

网友评论