Skip to content

Commit

Permalink
removeCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
franck34 committed Mar 4, 2019
1 parent a3764bd commit a722f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const clientTls = new Client('tls://127.0.0.1:6371');
await clientTls.loadDatabase({ db:'myTestDatabase' });
await clientTls.insert({ col:'devices', doc:{ 'foo':'bar' } });
const devices = await clientTls.find({ col:'devices' });
await clientTls.removeCollection({ c:'devices' });
await clientTls.saveDatabase();
await clientTls.close();

Expand Down

0 comments on commit a722f8d

Please sign in to comment.