@@ -130,12 +130,7 @@ function transformKeyValue(schema, className, restKey, restValue, {
130
130
return { key : key , value : value } ;
131
131
}
132
132
133
- function transformQueryKeyValue ( schema , className , restKey , restValue , {
134
- inArray,
135
- inObject,
136
- update,
137
- validate,
138
- } = { } ) {
133
+ function transformQueryKeyValue ( schema , className , restKey , restValue , { validate } = { } ) {
139
134
// Check if the schema is known since it's a built-in field.
140
135
var key = restKey ;
141
136
var timeField = false ;
@@ -228,27 +223,21 @@ function transformQueryKeyValue(schema, className, restKey, restValue, {
228
223
}
229
224
230
225
// Handle atomic values
231
- var value = transformAtom ( restValue , false , { inArray , inObject } ) ;
226
+ var value = transformAtom ( restValue , false ) ;
232
227
if ( value !== CannotTransform ) {
233
228
if ( timeField && ( typeof value === 'string' ) ) {
234
229
value = new Date ( value ) ;
235
230
}
236
231
return { key : key , value : value } ;
237
232
}
238
233
239
- // ACLs are handled before this method is called
240
- // If an ACL key still exists here, something is wrong.
241
- if ( key === 'ACL' ) {
242
- throw 'There was a problem transforming an ACL.' ;
243
- }
244
-
245
234
// Handle arrays
246
235
if ( restValue instanceof Array ) {
247
236
throw new Parse . Error ( Parse . Error . INVALID_JSON , 'cannot use array as query param' ) ;
248
237
}
249
238
250
239
// Handle update operators
251
- value = transformUpdateOperator ( restValue , ! update ) ;
240
+ value = transformUpdateOperator ( restValue , true ) ;
252
241
if ( value !== CannotTransform ) {
253
242
return { key : key , value : value } ;
254
243
}
0 commit comments