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
相关推荐
leeyi3 天前
Graph 执行引擎源码:Eino 的节点调度是怎么工作的(第56篇-E42)
agent·ai编程·graphql
jump_jump6 天前
深入理解 GraphQL:一条查询到底是怎么执行的
性能优化·api·graphql
李燚7 天前
Eino devops 调试系统源码:GraphCompileCallback 怎么工作(第50篇-E36)
数据库·golang·agent·devops·graphql·aiagent·eino
十五年专注C++开发9 天前
fatal error C1189: #error: WinSock.h has already been included 的解决方案
c++·socket·boost
墨香幽梦客10 天前
API经济时代:如何通过GraphQL优化ERP系统的数据集成效率?
graphql
冬奇Lab19 天前
每日一个开源项目(第147篇):HyperGraphRAG - 用超图表示 N 元关系,RAG 的第三代范式
人工智能·开源·graphql
喵个咪21 天前
Go-Wind GraphQL 服务器从入门到精通
后端·graphql
曲幽22 天前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
小灰灰搞电子1 个月前
C++ boost::circular_buffer 详解:原理、用法与实战
开发语言·c++·boost
小灰灰搞电子1 个月前
C++ boost::container 详解:高性能容器库完全指南
开发语言·c++·boost