카테고리 없음
[mongoDB] 231102 TIL
bunbun2
2023. 11. 2. 15:16
mongoDB의 ObjectId를 받아오면 객체로 받기 때문에,
문자열로 사용하고자할때는 toString 해줘야함
~~.toString("hex") as string;