Skip to content

Commit d947987

Browse files
ovidiulaz7Jawnnypoo
authored andcommitted
Fixed fetchAllIfNeeded and fetchAllIfNeededInBackground returning default Parse Query limit of 100 objects. (#939)
1 parent 0d5c3d6 commit d947987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parse/src/main/java/com/parse/ParseObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ private static <T extends ParseObject> Task<List<T>> fetchAllAsync(
967967
}
968968

969969
final ParseQuery<T> query = ParseQuery.<T>getQuery(className)
970-
.whereContainedIn(KEY_OBJECT_ID, objectIds);
970+
.whereContainedIn(KEY_OBJECT_ID, objectIds)
971+
.setLimit(objectIds.size());
971972
return toAwait.continueWithTask(new Continuation<Void, Task<List<T>>>() {
972973
@Override
973974
public Task<List<T>> then(Task<Void> task) {

0 commit comments

Comments
 (0)