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
相关推荐
麦兜*2 天前
MongoDB 与 GraphQL 结合:现代 API 开发新范式
java·数据库·spring boot·mongodb·spring·maven·graphql
自动驾驶小卡3 天前
boost::circular_buffer的使用方法简介
c++·boost·circular_buffer
0wioiw04 天前
Nodejs(④GraphQL)
后端·graphql
Sui_Network4 天前
GraphQL RPC 与通用索引器公测介绍:为 Sui 带来更强大的数据层
javascript·人工智能·后端·rpc·去中心化·区块链·graphql
幂简集成9 天前
GraphQL API 性能优化实战:在线编程作业平台指南
后端·性能优化·graphql
鼠鼠我捏,要死了捏24 天前
GraphQL 与 REST 在微服务架构中的对比与设计实践
graphql·rest·microservices
hayson1 个月前
nebula graph orm框架 norm 用法解析 - 结构迁移、标签配置
orm·graphql
Kookoos2 个月前
ABP VNext + GraphQL Federation:跨微服务联合 Schema 分层
后端·微服务·.net·graphql·abp vnext·schema 分层
程序猿阿伟2 个月前
《不只是接口:GraphQL与RESTful的本质差异》
前端·restful·graphql
奇树谦2 个月前
踩坑记录:因版本不匹配导致 Boost 1.85 编译失败的完整解决过程
boost