Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- typescript #unknown
- expess
- Promise #async #await #try #catch
- ejs 문법
- Passport
- GitHub Actions
- e.target
- 정적 페이지
- git vscode
- github#githubpages#gh-pages#deploy
- react#로스트아크#mbti#테스트
- typescript #class #extends #public #private #protected #static
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- insertone
- __dirname
- github#githubpages#빈화면#basename
- connect-mongo
- typescript #import #export #*
- sendFile
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- github#로컬저장소#원격저장소
- mongodb 입출력
- TypeScript #문법
- CSS
- updatemany
- updateone
- deserializeUser
- typescript #react #jsx #component #usestate
- typescript #constructor #class #public #private
- serializeUser
Archives
- Today
- Total
목록updatemany (1)
VaIice의 이야기
[Node.js] 게시글 수정 만들기
1. 수정 페이지 만들기 // server.ejsapp.get('/detail/modify/:id', async (request, response) => { try { let result = await db.collection('main').findOne({ _id: new ObjectId(request.params.id) }); response.render('modify.ejs', { post: result }) } catch { response.redirect('/') }})app.post('/modify', async (request, response) => { try { await db.collection('main').updateOne({ _id: new Objec..
[Node.js]
2024. 7. 15. 17:11