db-migrate / db-migrate/mongodb

Basic example code usage in readme

Open
#27 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
25
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hi I am struggling to get this package working. Seems to me that I have connection to mongo db setup properly, because I could list my collections names from calling `db._getCollectionNames`

but I am not able to figure out how to get collection, so I can perform update on collection:

```
exports.up = function (db) {
// how to use db to get to collection?
// this won't work
db.collection('Profile').update({},
{ $set: { "termsOfServiceUpdated": true } },
{
upsert: false,
multi: true
});
};
```

thank you very much

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/59018941-basic-example-code-usage-in-readme?utm_campaign=plugin&utm_content=tracker%2F12293389&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12293389&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.