Skip to Content
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
book

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

by 한선용, 이선 브라운
May 2021
Beginner to intermediate
448 pages
9h 47m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
230
한 권으로 끝내는 Node & Express
저장했습니다. 하지만 데이터베이스를 업데이트할 수 없다면 충분히 활용할 수 없습니다. 이제
데이터베이스 업데이트에 필요한 인터페이스를 만들어봅시다.
13.3.9
데이터 추가
15
사실 휴가 패키지의 시드 데이터를 만들면서 데이터를 추가했고, 패키지를 예약할 때 남은 숫
자를 업데이트하기도 했지만, 문서 데이터베이스의 유연성이 잘 드러나는 조금 더 복잡한 시나
리오를 만들어봅시다.
패키지 판매 기간이 끝나면, 나중에 그 패키지를 다시 판매할 때 고객에게 알리도록 예약
하는 링크를 표시하려고 합니다. 이 기능을 만들어봅시다. 먼저 스키마와 모델을 만듭니다
(
models
/
vacationInSeasonListener
.
js
).
const mongoose = require(‘mongoose’)
const vacationInSeasonListenerSchema = mongoose.Schema({
email: String,
skus: [String],
})
const VacationInSeasonListener = mongoose.model(‘VacationInSeasonListener’,
vacationInSeasonListenerSchema)
module.exports = VacationInSeasonListener
다음으로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한성용, 이선 브라운

Publisher Resources

ISBN: 9791162244227