middleware
[Nodejs, GraphQL] Middleware(미들웨어) 만들기
그래프큐엘에서 미들웨어를 쓰고 싶었다. 일단 jwt-token을 활용한 미들웨어를 만들어봤다. memberAuth.middleware.ts import memberService from '../service/member.service'; const memberAuthMiddleWare = async (authorization: string) => { const verifyJwtMemberAuth = await memberService.verifyJwtToken(authorization); const memberInfo = await memberService.getMemberInfo(Number(verifyJwtMemberAuth.memberIdx)); return memberInfo; }; export ..