Я пытаюсь создать мутацию, которая получает тип ввода, например:
input Cart {
items: [CartItem!]!
client: String!
}
input CartItem {
productId: Int!
qty: Int!
}
И моя мутация выглядит так:
type Mutation {
createOrder(cart: Cart!): Order!
}
Но когда я пытаюсь запустить В моем заявлении я получаю следующее исключение:
Caused by: com.coxautodev.graphql.tools.SchemaError: Expected type 'CartItem' to be a GraphQLOutputType, but it wasn't! Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
Что происходит?