Creating empty collection in Mongoose

23 views
Skip to first unread message

sasi kumar

unread,
Nov 5, 2015, 6:59:42 AM11/5/15
to Mongoose Node.JS ODM
Greetings,

  I am using mongoose  within mongoose-data-migrate  for my mongo data migration scripts. I would like to know if there is a way to create an empty collection using mongoose ? Though its a very rare usecase since mongo creates collections on the fly, I would like to know if there is an option ? 

Thanks,
Sasi
Reply all
Reply to author
Forward
0 new messages