Written on
·
293
1
Favoirte.find({"movieId": req.body.movieId})가 반환하는 게 쿼리?라고 봤는데 [1,2,3],즉 배열의 형태로 반환되는 이유를 알 수 있을까요? 쿼리면 { } 식으로 되야 하는 것 같은데 favoirte Schema에서도 []형태로 필드를 정한 적도 없는데 저리 나오는 게 궁금해서요!
Answer 4
1
0
저도 위의 수강생과 동일하게 Post를 가져오지 못해서 그런가
] [HPM] Error occurred while proxying request localhost:3000/api/favorite/favoriteNumber to http://localhost:5000/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while proxying request localhost:3000/api/users/auth to http://localhost:5000/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
이런 에러가 뜹니다
0
선생님 저는 프론트 부분에 Favorite.js에서 useEffect함수안
axios.post('/api/favorite/favoriteNumber',variables)
.then(response=>{
console.log(response.data);
if(response.data.success){
}else{
alert('정보를 가져오는데 실패 했습니다.')
}
}).catch(alert('정보를 가져오는데 실패 했습니다.'))
에서 부터 axios.post를 해오지 못하는데 어느부분을 살펴보는게 좋을가요??
0