• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

monggoose schema instance methods 작성시 화살표함수

21.11.16 15:18 작성 조회수 109

0

  • Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.

monggoose schema instance methods 작성시 화살표함수를 쓰게 되면 this는 무엇을 가르키나요

답변 1

답변을 작성해보세요.

0

안녕하세요  실제로 해보니 

this {}

이렇게 아무 값도 안들어있게 됩니다 ! 
감사합니다.