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
相关推荐
之歆1 天前
API 层架构设计 — 从 RESTful 到 GraphQL 的范式演进
vue.js·后端·restful·graphql
kyle~6 天前
C++---Boost库(准标准库)
开发语言·c++·机器人·ros·boost
rqtz9 天前
【C++】揭秘工程实践:Boost 源码编译与 CMake 环境搭建的具体流程
开发语言·c++·网络编程·boost
浮游本尊9 天前
React 18.x 学习计划 - 第十五天:GraphQL 与实时应用实战
学习·react.js·graphql
小陈工13 天前
Python后端实战:GraphQL高级应用与性能优化全解析
开发语言·人工智能·后端·python·性能优化·开源·graphql
SuperherRo18 天前
API攻防-接口类型&测试方法&端点提取&暴漏攻击&枚举规则&RESTful风格&GraphQL语法
api·restful·graphql
墨香幽梦客19 天前
API集成技术规范:RESTful与GraphQL在企业系统对接中的应用对比
后端·restful·graphql
大黄说说22 天前
RESTful API 与 GraphQL:架构选型指南
架构·restful·graphql
大黄说说23 天前
RESTful API vs GraphQL:设计哲学、性能博弈与选型指南
后端·restful·graphql
蜡笔小马1 个月前
32.Boost.Geometry 空间索引:R-Tree 接口详解
c++·boost·r-tree