Expected type 'PackageDetail' 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?

Kyle_Kim·2022년 12월 5일
0

처음에는 input타입설정이 잘못되어서 에러가 발생한줄 알고 IDE의 에러인줄 알았는데 정의된 변수명의 문제 때문이였다.

DTO와 GraphQl변수명이 다른것을 눈치채지 못하고 프로그램을 실행 하니 아래와 같은 결과가 나왔다.

Caused by: graphql.kickstart.tools.SchemaError: Expected type 'PackageDetail' 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?

profile
Make Things Right

0개의 댓글