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.
1 parent e7bad94 commit b2a4966Copy full SHA for b2a4966
Firestore/Swift/Source/AsyncAwait/CollectionReference+AsyncAwait.swift
@@ -51,6 +51,7 @@ public extension CollectionReference {
51
/// - Parameters:
52
/// - value: An instance of `Encodable` to be encoded to a document.
53
/// - encoder: An encoder instance to use to run the encoding.
54
+ /// - Throws: `Error` if the backend rejected the write.
55
/// - Returns: A `DocumentReference` pointing to the newly created document.
56
@discardableResult
57
func addDocument<T: Encodable>(from value: T,
0 commit comments