Skip to content

Commit 603486a

Browse files
authored
Improve query comparison (#163)
* Improve docs * Check pipeline and fields when comparing queries
1 parent 86d4bc7 commit 603486a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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/Parse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public struct ParseConfiguration {
3939
/**
4040
Create a Parse Swift configuration.
4141
- parameter applicationId: The application id of your Parse application.
42-
- parameter clientKey: The client key of your Parse application..
42+
- parameter clientKey: The client key of your Parse application.
4343
- parameter masterKey: The master key of your Parse application.
4444
- parameter serverURL: The server URL to connect to Parse Server.
4545
- parameter liveQueryServerURL: The live query server URL to connect to Parse Server.

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)