error>
{ Error: Variable '$where' expected value of type 'UserWhereUniqueInput!' but got: {"email":"kay@gmail.com"}. Reason: 'email' Field 'email' is not defined in the input type 'UserWhereUniqueInput'. (line 1, column 36):
mutation ($data: UserUpdateInput!, $where: UserWhereUniqueInput!)
solution>
datamodel.prisma >
userName: String! @unique
email: String! @unique
@unique 를 추가함.
'TIL > GraphQL' 카테고리의 다른 글
'likeCount' Expected non-null value, found null. (0) | 2020.03.15 |
---|---|
TypeError: _prismaClient.prisma.commentproduct is not a function (0) | 2020.03.11 |
Graphql | Error: Cannot return null for non-nullable field. (0) | 2020.03.07 |
member - file 연결 (0) | 2020.03.07 |
tag - model 수정 (0) | 2020.03.04 |
댓글