소개
소개글이 비어있어요
게시글
질문&답변
2020.11.26
배열에 담김 값도 search를 하고싶은데 어떻게 해야하나요?
//검색 기능에서 검색 우선순위 설정 productSchema. index ({ title: 'text' , description: 'text' , keywords: 'text' },{ weights:{ title: 5 , description: 3 , keywords: 1 } }) const Product = mongoose. model ( 'Product' , productSchema); module . exports = { Product } 추가해도 안되길래 ARRAY에 감싸져있어서 안되는건가 싶어서 질문드렸는데 ARRAY에 있는 값을 검색할때도 똑같이 keywords : 'text' 하면 된다는 말씀이신가요?
- 0
- 3
- 134
질문&답변
2020.11.05
사진이 업로드는 되는데 엑박이 뜹니다.
같은 문제가 저도 발생했었는데 src ={ `http://localhost:5000/ ${ image } ` } 이부분을 src ={ `http://localhost:5000/ ${ image .filePath } ` } 강의대로 안하고 filePath로 하니 엑박이 뜨더군요
- 0
- 3
- 965