Skip to content

Commit 56ec801

Browse files
authored
docs: improve query documentation (#369)
1 parent c14723a commit 56ec801

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
### main
44

5-
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/4.4.0...main)
5+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/4.5.0...main)
66
* _Contributing to this repo? Add info about your change here to be included in the next release_
77

8+
### 4.5.0
9+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/4.4.0...4.5.0)
10+
811
__New features__
912
- Add toCLLocation and toCLLocationCoordinate2D computed properties to ParseGeoPoint, deprecate toCLLocation() and toCLLocationCoordinate2D() ([#366](https://github.com/parse-community/Parse-Swift/pull/366)), thanks to [Corey Baker](https://github.com/cbaker6).
1013
- Add query computed property to ParseObject ([#365](https://github.com/parse-community/Parse-Swift/pull/365)), thanks to [Corey Baker](https://github.com/cbaker6).

Sources/ParseSwift/ParseConstants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010

1111
enum ParseConstants {
1212
static let sdk = "swift"
13-
static let version = "4.4.0"
13+
static let version = "4.5.0"
1414
static let fileManagementDirectory = "parse/"
1515
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
1616
static let fileManagementLibraryDirectory = "Library/"

Sources/ParseSwift/Types/QueryConstraint.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public func nor <T>(queries: Query<T>...) -> QueryConstraint where T: ParseObjec
306306

307307
For example:
308308

309-
var compoundQueryConstraints = and([query1, query2, query3])
309+
var compoundQueryConstraints = and(queries: [query1, query2, query3])
310310

311311
will create a compoundQuery that is an and of the query1, query2, and query3.
312312
- parameter queries: The list of queries to `and` together.
@@ -322,7 +322,7 @@ public func and <T>(queries: [Query<T>]) -> QueryConstraint where T: ParseObject
322322

323323
For example:
324324

325-
var compoundQueryConstraints = and(query1, query2, query3)
325+
var compoundQueryConstraints = and(queries: query1, query2, query3)
326326

327327
will create a compoundQuery that is an and of the query1, query2, and query3.
328328
- parameter queries: The variadic amount of queries to `and` together.

0 commit comments

Comments
 (0)