You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
super useful library! I'm trying to get a list of documents.
Looks like there is a getDocuments() function, but
`
environment.service.collection("collections").whereField("userId", isEqualTo: userId)
.getDocuments()
.sink(receiveCompletion: { completion in
switch completion {
case .finished: print("🏁 finished")
case .failure(let error): print("❗️ failure: (error)")
}
}) { snapshot in
doSomething(snapshot)
}.store(in: &cancelBag)
`
but sink and doSomething are never called even when get
public func getDocuments(source: FirestoreSource = .default) -> AnyPublisher<QuerySnapshot, Error>
returns a successful promise. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hi,
super useful library! I'm trying to get a list of documents.
Looks like there is a getDocuments() function, but
`
environment.service.collection("collections").whereField("userId", isEqualTo: userId)
.getDocuments()
.sink(receiveCompletion: { completion in
switch completion {
case .finished: print("🏁 finished")
case .failure(let error): print("❗️ failure: (error)")
}
}) { snapshot in
doSomething(snapshot)
}.store(in: &cancelBag)
`
but sink and doSomething are never called even when get
public func getDocuments(source: FirestoreSource = .default) -> AnyPublisher<QuerySnapshot, Error>
returns a successful promise. What am I doing wrong?
The text was updated successfully, but these errors were encountered: