20240213

귤금·2024년 2월 13일

Node.js 4기 TIL

목록 보기
34/86

Today?

팀 프로젝트

  • 프로젝트 명 : UDONG

팔로우/언팔로우 기능 추가

User
{
  where: {
    followerId: 2,
    followingId: 1,
?   id?: Int,
?   AND?: FollowWhereInput | FollowWhereInput[],
?   OR?: FollowWhereInput[],
?   NOT?: FollowWhereInput | FollowWhereInput[],
?   follower?: UsersRelationFilter | UsersWhereInput,
?   following?: UsersRelationFilter | UsersWhereInput
  }
}

Argument `where` of type FollowWhereUniqueInput needs at least one of `id` arguments. Available options are listed in green.

findUnique는 키값을 where절에 넣어주지 않으면 못 찾더라...
delete나 update도 마찬가지.
findFirst로 수정해서 해결함

오늘 배운 것

회고

follow/unfollow 페이지를 구현했다.

0개의 댓글