Skip to content

Commit 9e78458

Browse files
committed
Check pipeline and fields when comparing queries
1 parent 5b6af4c commit 9e78458

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.8.1...main)
55
* _Contributing to this repo? Add info about your change here to be included in the next release_
66

7+
__Improvements__
8+
- Ensure pipeline and fields are checked when comparing queries ([#163](https://github.com/parse-community/Parse-Swift/pull/163)), thanks to [Corey Baker](https://github.com/cbaker6).
9+
710
### 1.8.1
811
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.8.0...1.8.1)
912

Sources/ParseSwift/Types/Query.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,9 @@ public struct Query<T>: Encodable, Equatable where T: ParseObject {
700700
lhs.readPreference == rhs.readPreference,
701701
lhs.includeReadPreference == rhs.includeReadPreference,
702702
lhs.subqueryReadPreference == rhs.subqueryReadPreference,
703-
lhs.distinct == rhs.distinct else {
703+
lhs.distinct == rhs.distinct,
704+
lhs.pipeline == rhs.pipeline,
705+
lhs.fields == rhs.fields else {
704706
return false
705707
}
706708
return true

0 commit comments

Comments
 (0)