小编Spa*_*029的帖子

在 Strawberry GraphQL Resolver 中获取请求的字段

我们如何在 Strawberry GraphQL Resolver 中获取请求的字段

query {
   test {
       label
   }
}
Run Code Online (Sandbox Code Playgroud)

如何获取label解析器中的字段?

我努力了:

info.field_nodes[0].selection_set.selections
Run Code Online (Sandbox Code Playgroud)

但它没有返回我想要的

python-3.x strawberry-graphql

3
推荐指数
1
解决办法
2022
查看次数

标签 统计

python-3.x ×1

strawberry-graphql ×1