Database2 - Lowdb
Database2 - Lowdb
Open
tutorials.org
도움말
로그인
로그인
닫기
아이디
비밀번호
로그인 유지
로그인
후원
공동공부
(
91
명)
조회
2018-08-11 22:34:36
수업소개
lowdb의 데이터를 읽어오는 방법을 알아봅시다.
강의
소스코드
변경사항
봤어요
(
87
명)
이전
다음
댓글
댓글 본문
댓글을 작성하려면 로그인하셔야 합니다.
나연
3개월 전
2022년 3월 1일 (화) 완료
Lodash : 자바스크립트의 굉장히 유명한 라이브러리
- lowdb의 "Lo" : Lodash에서 옴
```js
const lowdb = db.chain
.get("topics")
.find({ title: "lowdb", author: 1 })
.value();
console.log(lowdb);
```
`sortBy()`
`take()` : MySQL에 치면 `LIMIT`의 기능
`map()`
`size()`
답글
labis98
10개월 전
20210826 good!!!
답글
김윤석
1년 전
21.04.28
답글
jeisyoon
1년 전
2021.03.27 조회 - OK
답글
chimhyangmoo
1년 전
21.03.10
답글
생활둘기
1년 전
2021 2 15
답글
Yong Hyun Lee
1년 전
완료 200920
답글
착한얼굴에그러치모탄태도
1년 전
수강완료. 감사합니다~
답글
쑤우
1년 전
수강완료. 감사합니다~
답글
Amousk
1년 전
끝.
답글
웅이
2년 전
.filter()는 '~이 아닌 것들을 조회한다' 정도로 이해하면 되나요 ?
답글
굼벵이
2년 전
완료
답글
수정
삭제
DOTOLEE
3년 전
Check if posts exists.
db.has('posts')
.value()
Set posts.
db.set('posts', [])
.write()
Sort the top five posts.
db.get('posts')
.filter({published: true})
.sortBy('views')
.take(5)
.value()
Get post titles.
db.get('posts')
.map('title')
.value()
Get the number of posts.
db.get('posts')
.size()
.value()
Get the title of first post using a path.
db.get('posts[0].title')
.value()
Update a post.
db.get('posts')
.find({ title: 'low!' })
.assign({ title: 'hi!'})
.write()
Remove posts.
db.get('posts')
.remove({ title: 'low!' })
.write()
Remove a property.
db.unset('user.name')
.write()
Make a deep clone of posts.
db.get('posts')
.cloneDeep()
.value()
https://github.com......wdb
답글
supernet
3년 전
완료!!!
답글
삼고잉
3년 전
find 로 읽는걸 복습했습니다
답글
egoing
3년 전
앗 죄송합니다. 추가했습니다.
https://opentutorials.org......208
대화보기
답글
Hyung Jun Choi
3년 전
토픽목록 4번이 빠져있습니다..ㅠㅠ
답글
따숩소
3년 전
왼쪽 토픽 목록에서 [4. 생성] 항목이 빠져 있어요.
https://www.youtube.com......6A8
답글
수정
삭제
더 보기
버전 관리
닫기
2018-08-11 13:36:18
egoing
현재 버전
2018-08-11 13:36:18
선택 버전
선택한 버전으로 복원
버전 비교
graphittie
자세히 보기
토픽
0
모듈
0
코스
0
봤어요
0
댓글
0
명예의 전당
0