-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address deprecations in new MongoDB versions
With the MongoDB package version the linter fails because of new deprecations: - mongo.NewClient() and Mongo.Client.Connect() have been replaced by mongo.Connect. - bson.D.Map() will be removed. They recommend that you use bson.Marshal() followed by a bson.Unmarshal() into a bson.M, but since we just need the value of a single known key we use a small custom function instead.
- Loading branch information
1 parent
a0b0c73
commit 9c3a146
Showing
1 changed file
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters