Favorite.find()
319
34 asked
Favoirte.find({"movieId": req.body.movieId})가 반환하는 게 쿼리?라고 봤는데 [1,2,3],즉 배열의 형태로 반환되는 이유를 알 수 있을까요? 쿼리면 { } 식으로 되야 하는 것 같은데 favoirte Schema에서도 []형태로 필드를 정한 적도 없는데 저리 나오는 게 궁금해서요!
Answer 4
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
228
1
antd Menu 질문
0
260
1
movieTitle
0
218
1
npm run dev 연결이 안됩니다ㅜㅜ
0
410
1
npm run dev 오류
0
855
1
403 forbidden error
0
1067
2
npm run dev 오류
0
696
1
모듈이 없다는데요
0
1278
1
npm run dev 실행시 오류
0
5371
1
504 Gateway Timeout Error
0
1448
1
컴파일 에러 관련 문의
0
504
1
npm run dev 오류
0
760
1
이미지가 안떠요...
0
369
2
npm run dev 실행하고 인증이 안되는거 같아요
0
531
1
cd client에서 npm install 오류
0
1418
1
npm run dev시 localhost가 자꾸 3000으로 연결됩니다
0
972
1
Netlify + AWS Elastic Beanstalk 를 이용한 배포
1
1785
1
[nodemon] app crashed - waiting for file changes before starting... Error occurred while proxying request localhost:3000/api/hello to http://localhost:5000/ 해결법
0
460
0
지금 듣기엔 안되는 강의일까요?
0
718
1
사진이 2개 2개씩 다른줄에 나와요 ㅠㅠ
0
428
1
비동기 처리가 영상과 다르게 됩니다..
0
247
0
#2강 npm install
0
768
4
LandingPage.js 내 useState(null) 이용하는 이유
0
226
0
client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요?
0
384
1

