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
相关推荐
阿标在干嘛7 天前
从RESTful到GraphQL:政策快报平台接口设计的演进
后端·restful·graphql
troyzhxu18 天前
列表查询的 GraphQL —— 一行代码终结你的 if-else 地狱!
java·springboot·graphql
乔伊酱18 天前
我被列表查询折磨了 7 年,直到有一天我发现它不是 ORM 的事!
spring boot·graphql
leeyi1 个月前
Graph 执行引擎源码:Eino 的节点调度是怎么工作的(第56篇-E42)
agent·ai编程·graphql
jump_jump1 个月前
深入理解 GraphQL:一条查询到底是怎么执行的
性能优化·api·graphql
李燚1 个月前
Eino devops 调试系统源码:GraphCompileCallback 怎么工作(第50篇-E36)
数据库·golang·agent·devops·graphql·aiagent·eino
十五年专注C++开发1 个月前
fatal error C1189: #error: WinSock.h has already been included 的解决方案
c++·socket·boost
墨香幽梦客1 个月前
API经济时代:如何通过GraphQL优化ERP系统的数据集成效率?
graphql
冬奇Lab1 个月前
每日一个开源项目(第147篇):HyperGraphRAG - 用超图表示 N 元关系,RAG 的第三代范式
人工智能·开源·graphql
喵个咪1 个月前
Go-Wind GraphQL 服务器从入门到精通
后端·graphql