Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Jun 10, 2024
1 parent 293c7e7 commit 8716106
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/service-core/src/storage/mongo/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ export class PowerSyncMongo {
this.client = client;

const db = client.db(options?.database, {
// Note this issue with useBigInt64: https://jira.mongodb.org/browse/NODE-6165
// Unfortunately there is no workaround if we want to continue using bigint.
// We selectively disable this in individual queries where we don't need that.
...BSON_DESERIALIZE_OPTIONS
});
this.db = db;
Expand Down
2 changes: 1 addition & 1 deletion packages/service-core/src/storage/mongo/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ export async function readSingleBatch<T>(cursor: mongo.FindCursor<T>): Promise<{
}

export const BSON_DESERIALIZE_OPTIONS: bson.DeserializeOptions = {
// use bigint instead of long
// use bigint instead of Long
useBigInt64: true
};

0 comments on commit 8716106

Please # to comment.