如何在Strawberry GraphQL Resolver中获取请求字段
query { test { label } }
如何获取解析器中的label字段?我试过:
label
info.field_nodes[0].selection_set.selections
但不是我想要的回报
e5nqia271#
{selection.name for field in info.selected_fields for selection in field.selections}
1条答案
按热度按时间e5nqia271#