diff --git a/packages/service-core/src/storage/mongo/db.ts b/packages/service-core/src/storage/mongo/db.ts index 76159de0..92246b24 100644 --- a/packages/service-core/src/storage/mongo/db.ts +++ b/packages/service-core/src/storage/mongo/db.ts @@ -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; diff --git a/packages/service-core/src/storage/mongo/util.ts b/packages/service-core/src/storage/mongo/util.ts index 6bcfbddd..9585b76b 100644 --- a/packages/service-core/src/storage/mongo/util.ts +++ b/packages/service-core/src/storage/mongo/util.ts @@ -83,6 +83,6 @@ export async function readSingleBatch(cursor: mongo.FindCursor): Promise<{ } export const BSON_DESERIALIZE_OPTIONS: bson.DeserializeOptions = { - // use bigint instead of long + // use bigint instead of Long useBigInt64: true };