Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jan 3, 2022
1 parent f74a052 commit 4f10f39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ do {
print(error)
}

//: Query all scores whose is null or undefined.
//: Query all scores whose name is null or undefined.
let query1 = GameScore.query(isNotNull(key: "name"))
let results1 = try query1.find()
print("Total found: \(results1.count)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ query4.find { results in
}
}

//: Get the same results as the previous query whose location is not null or undefined.
//: If you want to query for points > 9 and whose location is not null or undefined.
var anotherQuery4 = GameScore.query("points" > 9, isNotNull(key: "location"))
anotherQuery4.find { results in
switch results {
Expand Down
3 changes: 2 additions & 1 deletion Sources/ParseSwift/Parse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct ParseConfiguration {
public internal(set) var isUsingTransactions = false

/// Use the **$eq** query constraint when querying.
/// - warning: This is known not to work for LiveQueries on Parse Servers < 5.0.0.
/// - warning: This is known not to work for LiveQuery on Parse Servers <= 5.0.0.
public internal(set) var isUsingEqualQueryConstraint = false

/// The default caching policy for all http requests that determines when to
Expand Down Expand Up @@ -249,6 +249,7 @@ public struct ParseSwift {
- parameter keyValueStore: A key/value store that conforms to the `ParseKeyValueStore`
protocol. Defaults to `nil` in which one will be created an memory, but never persisted. For Linux, this
this is the only store available since there is no Keychain. Linux users should replace this store with an
encrypted one.
- parameter requestCachePolicy: The default caching policy for all http requests that determines
when to return a response from the cache. Defaults to `useProtocolCachePolicy`. See Apple's [documentation](https://developer.apple.com/documentation/foundation/url_loading_system/accessing_cached_data)
for more info.
Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseSwift/Types/QueryConstraint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public func <= <T>(key: String, value: T) -> QueryConstraint where T: Encodable
- returns: The same instance of `QueryConstraint` as the receiver.
- warning: See `equalTo` for more information.
Behavior changes based on `ParseSwift.configuration.isUsingEqualQueryConstraint`
where isUsingEqualQueryConstraint == true is known not to work for LiveQueries on
where isUsingEqualQueryConstraint == true is known not to work for LiveQuery on
Parse Servers <= 5.0.0.
*/
public func == <T>(key: String, value: T) -> QueryConstraint where T: Encodable {
Expand Down Expand Up @@ -177,7 +177,7 @@ public func equalTo <T>(key: String,
- throws: An error of type `ParseError`.
- warning: See `equalTo` for more information.
Behavior changes based on `ParseSwift.configuration.isUsingEqualQueryConstraint`
where isUsingEqualQueryConstraint == true is known not to work for LiveQueries on
where isUsingEqualQueryConstraint == true is known not to work for LiveQuery on
Parse Servers <= 5.0.0.
*/
public func == <T>(key: String, value: T) throws -> QueryConstraint where T: ParseObject {
Expand Down

0 comments on commit 4f10f39

Please sign in to comment.