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
相关推荐
leeyi2 天前
Graph 编排:不只是 ReAct 的通用 DAG
react native·agent·graphql
墨香幽梦客5 天前
GraphQL在ERP数据集成中的革命性应用:从N+1查询到批量优化的实践
后端·graphql
一拳一个娘娘腔14 天前
【SRC漏洞挖掘系列】第10期:GraphQL & API 安全 —— 现代 API 的“裸奔”时代
后端·安全·graphql
hhb_61814 天前
GraphQL实战避坑指南:性能与安全优化
数据库·安全·graphql
linmengmeng_131416 天前
【总结】HugeGraph Client 从 1.2.0 升级到 1.7.0 的 7 个坑
graphql·hugegraph
JavaEdge.22 天前
06-LangChain Tool 加载与使用指南:预制工具、SerpAPI、edge-tts、GraphQL
chrome·langchain·graphql
竹林8181 个月前
被The Graph的GraphQL查询坑了三天,我用一个真实DeFi项目把链上数据索引彻底搞懂了
前端·graphql
国医中兴1 个月前
Flutter 三方库 nhost_graphql_adapter 的鸿蒙化适配指南 - 云端数据实时对齐、GraphQL 架构实战、鸿蒙级全栈交互专家
flutter·harmonyos·graphql
牛奶2 个月前
老板问我接口设计,我甩给他一个文档
前端·restful·graphql
万琛2 个月前
【 GitHub GraphQL 】查询优化
github·graphql