We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af6e28 commit 9208138Copy full SHA for 9208138
src/Adapters/Storage/Postgres/PostgresStorageAdapter.js
@@ -250,6 +250,9 @@ const transformAggregateField = fieldName => {
250
if (fieldName === '$_updated_at') {
251
return 'updatedAt';
252
}
253
+ if (!fieldName.startsWith('$')) {
254
+ throw new Parse.Error(Parse.Error.INVALID_KEY_NAME, `Invalid field name: ${fieldName}`);
255
+ }
256
const name = fieldName.substring(1);
257
validateAggregateFieldName(name);
258
return name;
0 commit comments