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
相关推荐
冬奇Lab6 分钟前
每日一个开源项目(第147篇):HyperGraphRAG - 用超图表示 N 元关系,RAG 的第三代范式
人工智能·开源·graphql
喵个咪1 天前
Go-Wind GraphQL 服务器从入门到精通
后端·graphql
曲幽2 天前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
小灰灰搞电子15 天前
C++ boost::circular_buffer 详解:原理、用法与实战
开发语言·c++·boost
小灰灰搞电子16 天前
C++ boost::container 详解:高性能容器库完全指南
开发语言·c++·boost
小灰灰搞电子19 天前
C++ boost::asio 详解:网络编程领域的“瑞士军刀“
网络·c++·boost
leeyi20 天前
Workflow 编排:字段映射、数据流分离
langchain·workflow·graphql
leeyi22 天前
Graph 编排:不只是 ReAct 的通用 DAG
react native·agent·graphql
墨香幽梦客25 天前
GraphQL在ERP数据集成中的革命性应用:从N+1查询到批量优化的实践
后端·graphql
一拳一个娘娘腔1 个月前
【SRC漏洞挖掘系列】第10期:GraphQL & API 安全 —— 现代 API 的“裸奔”时代
后端·安全·graphql