fix(core): Fixed issue with handling filter keys containing dots in smartdata.classes.doc.ts

This commit is contained in:
2024-09-05 13:02:27 +02:00
parent 57d2d56d00
commit b30522c505
3 changed files with 147 additions and 3 deletions

View File

@ -1,8 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@push.rocks/smartdata',
version: '5.2.6',
version: '5.2.7',
description: 'An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.'
}

View File

@ -60,7 +60,8 @@ export const convertFilterForMongoDb = (filterArg: { [key: string]: any }) => {
convertedFilter[keyPathArg2] = filterArg2;
return;
} else if (key.includes('.')) {
throw new Error('keys cannot contain dots');
convertedFilter[keyPathArg2] = filterArg2;
return;
}
}
for (const key of Object.keys(filterArg2)) {