【发布时间】:2022-03-30 11:15:57
【问题描述】:
我正在尝试在 Spring Boot 中设置 GraphQL 端点,当我尝试运行我的应用程序时,我收到以下错误:
Expected type 'Order' to be a GraphQLInputType, but it wasn't! Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
这是我的models.graphqls:
type Order {
id: String!
storeOrderId: String
connectionId: String
}
type Mutation {
createOrder(order: Order): Order
}
【问题讨论】:
标签: spring spring-boot graphql graphql-java