Add a sample method that directly runs an $sample aggregation.
Add startSession and killSession methods.
Other changes:
Replace mongodb-js-precommit with separate eslint, depcheck and pre-commit (i keep having issues with eslint and VSCode like that, also the depcheck there simply doesn't catch any real problem)
Types of changes
[ ] Backport Needed
[ ] Patch (non-breaking change which fixes an issue)
[ ] Minor (non-breaking change which adds functionality)
[x] Major (fix or feature that would cause existing functionality to change)
mongodb-collection-sample
startSession
andkillSession
methods.Other changes:
mongodb-js-precommit
with separateeslint
,depcheck
andpre-commit
(i keep having issues witheslint
and VSCode like that, also the depcheck there simply doesn't catch any real problem)Types of changes