Support entity canon zone / Workaround Duplicate Key / Support hint / Support BSON / Remove Mongo 3 Warnings #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is allowing one plugin to deal with multiple databases on the same computer. The mongo connection (MongoClient) is hold by the plugin, and the db/name or name part of the database URI is now optional. The plugin will use the entity's zone as database name or the database name provided in option as default database if no zone is provided in the managed entity.
Then all entity related operations are done on the corresponding database through the same MongoClient!
Add mongodb recommended workaround on duplicate key on update/replace (reduce coveralls ratio to 84 instead of 85). In case of E1100 error during an update/replace operation, the store will automatically perform a retry and is generating a seneca warning log.
Add support of mongo hint in query by using the hint$ property in query, you can now help mongo driver to select the right index to use. (see https://docs.mongodb.com/manual/reference/operator/meta/hint/)
Remove Dot-notation dependency to support BSON fields
Remove all warnings due to mongodb 3 usage: