1. Database 메뉴 클릭
2. Collections 버튼 클릭
3. Add My Own Data 클릭
1) database name = 프로젝트 이름
2) Collection name = 폴더 명
3) Additional Preferences
=> Select 그대로 두고 Create 버튼 클릭
4. 새로 만든 Collections이 추가된 모습
5. 우측에 INSERT DOCUMENT 클릭
6. 빈 공간을 클릭하고 제목과 내용 기입
7. Add field after를 누르면 행을 더 추가할 수 있음.
8. Insert 버튼 클릭 후 데이터가 추가된 모습
정리
Collection = 폴더
Document = 파일
data = 데이터
파이어베이스랑 같은 비관계형 데이터베이스라 가볍게 프로젝트하기에 좋을 것 같다.
둘의 차이점은 아직까지는 크게 모르겠지만, 다음 포스팅 주제는 next.js에서 불러오는 법을 다룰 예정이다!
'MongoDB' 카테고리의 다른 글
MongoDB 셋팅 방법 (0) | 2023.07.05 |
---|