0

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

0 回答 0