Skip to content

Commit

Permalink
fix: adapt to db-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Oct 19, 2021
1 parent cbe7cef commit 0014437
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 356 deletions.
10 changes: 7 additions & 3 deletions src/mongo.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import {
DBQuery,
DBTransaction,
mergeDBOperations,
ObjectWithId,
RunQueryResult,
AnyObjectWithId,
} from '@naturalcycles/db-lib'
import { _filterUndefinedValues, _Memo, _omit } from '@naturalcycles/js-lib'
import {
_filterUndefinedValues,
_Memo,
_omit,
ObjectWithId,
AnyObjectWithId,
} from '@naturalcycles/js-lib'
import { Debug, ReadableTyped } from '@naturalcycles/nodejs-lib'
import { CommandOperationOptions, Filter, MongoClient, MongoClientOptions } from 'mongodb'
import { dbQueryToMongoQuery } from './query.util'
Expand Down
3 changes: 2 additions & 1 deletion src/query.util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DBQuery, DBQueryFilterOperator, ObjectWithId } from '@naturalcycles/db-lib'
import { DBQuery, DBQueryFilterOperator } from '@naturalcycles/db-lib'
import { ObjectWithId } from '@naturalcycles/js-lib'
import { Filter, FilterOperators, FindOptions } from 'mongodb'

// Map DBQueryFilterOp to Mongo "Comparison query operator"
Expand Down
Loading

0 comments on commit 0014437

Please sign in to comment.