From e5981ce41994e202b14ab88de97722e7698419a8 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 18 Jul 2026 16:28:25 +0100 Subject: [PATCH] Updated expandObjectIds function in utils.js to convert _id values to strings, ensuring consistent data formatting for object IDs. --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 523600a..8f68561 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1059,7 +1059,7 @@ function expandObjectIds(input) { for (const [key, val] of Object.entries(value)) { if (key === '_id') { // Do not expand keys that are already named _id - result[key] = val; + result[key] = val.toString(); } else if (isObjectId(val)) { result[key] = { _id: val }; } else if (Array.isArray(val)) {