feat: Remove deprecation DEPPS1: Native MongoDB syntax in aggregation pipeline (#8362)
BREAKING CHANGE: The MongoDB aggregation pipeline requires native MongoDB syntax instead of the custom Parse Server syntax; for example pipeline stage names require a leading dollar sign like `$match` and the MongoDB document ID is referenced using `_id` instead of `objectId` (#8362)
This commit is contained in:
@@ -2241,8 +2241,11 @@ export class PostgresStorageAdapter implements StorageAdapter {
|
||||
});
|
||||
stage.$match = collapse;
|
||||
}
|
||||
for (const field in stage.$match) {
|
||||
for (let field in stage.$match) {
|
||||
const value = stage.$match[field];
|
||||
if (field === '_id') {
|
||||
field = 'objectId';
|
||||
}
|
||||
const matchPatterns = [];
|
||||
Object.keys(ParseToPosgresComparator).forEach(cmp => {
|
||||
if (value[cmp]) {
|
||||
|
||||
Reference in New Issue
Block a user