如何在查询响应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
}