Postgres: $all, $and CLP and more (#2551)
* Adds passing tests * Better containsAll implementation * Full Geopoint support, fix inverted lat/lng * Adds support for $and operator / PointerPermissions specs * Fix issue updating CLPs on schema * Extends query support * Adds RestCreate to the specs * Adds User specs * Adds error handlers for failing tests * nits * Proper JSON update of AuthData * fix for #1259 with PG * Fix for Installations _PushStatus test * Adds support for GlobalConfig * Enables relations tests * Exclude spec as legacy * Makes corner case for 1 in GlobalConfig
This commit is contained in:
@@ -26,6 +26,12 @@ const transformKeyValueForUpdate = (className, restKey, restValue, parseFormatSc
|
||||
switch(key) {
|
||||
case 'objectId':
|
||||
case '_id':
|
||||
if (className === '_GlobalConfig') {
|
||||
return {
|
||||
key: key,
|
||||
value: parseInt(restValue)
|
||||
}
|
||||
}
|
||||
key = '_id';
|
||||
break;
|
||||
case 'createdAt':
|
||||
@@ -143,7 +149,12 @@ function transformQueryKeyValue(className, key, value, schema) {
|
||||
return {key: '_email_verify_token_expires_at', value: valueAsDate(value)}
|
||||
}
|
||||
break;
|
||||
case 'objectId': return {key: '_id', value}
|
||||
case 'objectId': {
|
||||
if (className === '_GlobalConfig') {
|
||||
value = parseInt(value);
|
||||
}
|
||||
return {key: '_id', value}
|
||||
}
|
||||
case 'sessionToken': return {key: '_session_token', value}
|
||||
case '_rperm':
|
||||
case '_wperm':
|
||||
|
||||
Reference in New Issue
Block a user