장바구니구현 (1) 썸네일형 리스트형 4차 미니프로젝트, 이커머스- 원하는 상품 장바구니 수량수정 & 삭제 4차 미니프로젝트, 이커머스- 원하는 상품 장바구니 수량수정 & 삭제 장바구니 리스트 모두 가져오기 📄 back(Node.js) // 내가 가진 장바구니 목록을 전부 불러오기 router.get('/cart', async (req, res) => { // const { userId } = res.locals.user; const cart = await Cart.findAll({ // where: { // userId, // }, }); const productIds = cart.map((c) => c.productId); const productsKeyById = await Product.findAll({ where: { productId: productIds, }, }).then((products) =.. 이전 1 다음