diff --git a/firestore/collgroupref.go b/firestore/collgroupref.go index c13ff1f160b8..90986ad71f6c 100644 --- a/firestore/collgroupref.go +++ b/firestore/collgroupref.go @@ -60,8 +60,8 @@ func (cgr CollectionGroupRef) GetPartitionedQueries(ctx context.Context, partiti return nil, err } queries := make([]Query, len(qp)) - for _, part := range qp { - queries = append(queries, part.toQuery()) + for i, part := range qp { + queries[i] = part.toQuery() } return queries, nil }