bigplum / lua-resty-mongol

A ngx_lua driver for mongodb -- Deprecated for not updating with the mongodb version
198 stars 67 forks source link

how to create a collection if it does not exist! #38

Open samarism opened 9 years ago

samarism commented 9 years ago

Hi, In MongoDB this command created a collection if it does not exist: db.collection.insert()

I see no way of creating a collection like this in mongol.

Am i missing something here?

Thanks for your help.

Samar