filecoin boost GraphQL API 查询

查询示例

查询失败交易

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"query { deals(limit: 10, query: \"failed to get size of imported\") { deals { ID CreatedAt Message } } }"}' \
http://localhost:8080/graphql/query | jq

查询 取消交易

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"mutation { dealCancel(id: \"ab12345c-5678-90de-12f3-45a6b78cd9ef\") }"}' \
http://localhost:8080/graphql/query | jq

查询 订单状态 Adding to Sector

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"query { deals(limit: 2000) { deals { ID CreatedAt Message } } }"}' \
http://localhost:8080/graphql/query | jq | grep "Adding to Sector" | wc -l

参考

  1. GraphQL API
相关推荐
hayson3 天前
nebula graph orm框架 norm 用法解析 - 结构迁移、标签配置
orm·graphql
Kookoos17 天前
ABP VNext + GraphQL Federation:跨微服务联合 Schema 分层
后端·微服务·.net·graphql·abp vnext·schema 分层
程序猿阿伟19 天前
《不只是接口:GraphQL与RESTful的本质差异》
前端·restful·graphql
奇树谦23 天前
踩坑记录:因版本不匹配导致 Boost 1.85 编译失败的完整解决过程
boost
代码搬运媛1 个月前
HTTP REST API、WebSocket、 gRPC 和 GraphQL 应用场景和底层实现
websocket·http·graphql
白总Server2 个月前
Web 架构之 GraphQL 与 REST API 对比与选型
java·大数据·前端·javascript·后端·架构·graphql
白总Server2 个月前
Golang dig框架与GraphQL的完美结合
java·大数据·前端·javascript·后端·go·graphql
剑海风云2 个月前
适应性Java用于现代 API:REST、GraphQL 和事件驱动
java·api·restful·graphql·事件驱动
赵大仁3 个月前
【GraphQL】深入解析 Apollo Client:从架构到实践的一站式 GraphQL 解决方案
后端·架构·graphql
江沉晚呤时3 个月前
GraphQL在.NET 8中的全面实践指南
microsoft·ui·c#·.net·.netcore·graphql