We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@discardableResult
1 parent 44eeea0 commit 767d7c2Copy full SHA for 767d7c2
Firestore/Swift/Source/AsyncAwait/CollectionReference+AsyncAwait.swift
@@ -25,6 +25,7 @@ import Foundation
25
/// - Parameter data: A `Dictionary` containing the data for the new document.
26
/// - Throws: `Error` if the backend rejected the write.
27
/// - Returns: A `DocumentReference` pointing to the newly created document.
28
+ @discardableResult
29
func addDocument(data: [String: Any]) async throws -> DocumentReference {
30
return try await withCheckedThrowingContinuation { continuation in
31
var document: DocumentReference?
0 commit comments