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
相关推荐
幂简集成1 天前
GraphQL API 性能优化实战:在线编程作业平台指南
后端·性能优化·graphql
鼠鼠我捏,要死了捏16 天前
GraphQL 与 REST 在微服务架构中的对比与设计实践
graphql·rest·microservices
hayson24 天前
nebula graph orm框架 norm 用法解析 - 结构迁移、标签配置
orm·graphql
Kookoos1 个月前
ABP VNext + GraphQL Federation:跨微服务联合 Schema 分层
后端·微服务·.net·graphql·abp vnext·schema 分层
程序猿阿伟1 个月前
《不只是接口:GraphQL与RESTful的本质差异》
前端·restful·graphql
奇树谦1 个月前
踩坑记录:因版本不匹配导致 Boost 1.85 编译失败的完整解决过程
boost
代码搬运媛2 个月前
HTTP REST API、WebSocket、 gRPC 和 GraphQL 应用场景和底层实现
websocket·http·graphql
白总Server3 个月前
Web 架构之 GraphQL 与 REST API 对比与选型
java·大数据·前端·javascript·后端·架构·graphql
白总Server3 个月前
Golang dig框架与GraphQL的完美结合
java·大数据·前端·javascript·后端·go·graphql
剑海风云3 个月前
适应性Java用于现代 API:REST、GraphQL 和事件驱动
java·api·restful·graphql·事件驱动