问题描述
如何使用 QueryResult
在查询响应中显示输入类型 GetFoosInput
?我要显示回他传递的用户信息。
type Bar {
name: String
}
type Baz {
filename: String
length: Int
}
union Foo = Bar | Baz
input GetFoosInput {
limit: Int
offset: Int
}
type QueryResult {
totalCount: Int!
queryInfo: GetFoosInput! # unable to do this
result: [Foo!]
}
type Query {
getFoos(input: GetFoosInput): QueryResult
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)