Skip to content

Commit 33f0649

Browse files
committed
Add order random
1 parent e94f4f7 commit 33f0649

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Sources/Appwrite/Query.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ public struct Query : Codable, CustomStringConvertible {
280280
).description
281281
}
282282

283+
public static func orderRandom() -> String {
284+
return Query(
285+
method: "orderRandom"
286+
).description
287+
}
288+
283289
public static func cursorBefore(_ id: String) -> String {
284290
return Query(
285291
method: "cursorBefore",

Sources/AppwriteModels/Execution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ open class Execution: Codable {
5555
/// HTTP request path and query.
5656
public let requestPath: String
5757

58-
/// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
58+
/// HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
5959
public let requestHeaders: [Headers]
6060

6161
/// HTTP response status code.

0 commit comments

Comments
 (0)