Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/Appwrite/Query.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ public struct Query : Codable, CustomStringConvertible {
).description
}

public static func orderRandom() -> String {
return Query(
method: "orderRandom"
).description
}

public static func cursorBefore(_ id: String) -> String {
return Query(
method: "cursorBefore",
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppwriteModels/Execution.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ open class Execution: Codable {
/// HTTP request path and query.
public let requestPath: String

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

/// HTTP response status code.
Expand Down