collection : document들의 집합 mongoDB에서 최소의 정보단위 = document const users = client.db('db22').collection('users') 이미 만들어져있는 컬렉션이 아니라도, 컬렉션을 지정하면 만들 수가 있어요~ await users.deleteMany({}) : users컬렉션 비우기 await users.insertMand([...]) const cursor = users.find({}) await cursor.forEach(console.log) 참고 : https://www.mongodb.com/docs/drivers/