This message was deleted.
# 질문
s
This message was deleted.
u
Copy code
Type '{ user: { accessToken: string; refreshToken: string; id: number; email: string; password: string; name: string; createdAt: Date; updatedAt: Date; }; errors: never[]; }' is not assignable to type 'Omit<LoginResponse, "errors">'.
    The types of 'user.id' are incompatible between these types.
            Type 'number' is not assignable to type 'string'.
t
String으로 감싸셔요 ㅎㅎ
u
Node id 타입 이름으로 붙이는 그것을 하려고 삽질하다가 질문이 반쪽으로 쪼개졌군요.. ㅋㅋㅋㅋ
답변 감사합니다
t
아하 그거는 Node 모델 id 리졸버에서하고, Graphql-tools/schema에 인터페이스 리졸버쓰는 옵션이 있던걸로 압니다 ㅎㅎ
👍 1