Open onmyway133 opened 2 years ago
Supposed we have Book object
Book
struct Book: Identifiable, Codable, Hashable { @DocumentID var id: String? }
We should use FieldPath instead of id for query
id
let booksRef: CollectionReference = ... let ids: [String] = ... booksRef .whereField( FieldPath.documentID(), in: ids )
Supposed we have
Book
objectWe should use FieldPath instead of
id
for query