Closed Kronhyx closed 4 years ago
I got something like this
async findByUser(ref: IDocumentRef<UserModel>) { const snapshot = await Collection(WalletModel).query() .where('user', '==', ref).get(); return snapshot.docs; }
and it is generating this error
FirebaseError: Function Query.where() called with invalid data. Unsupported field value: a custom DocumentRef object
I got something like this
and it is generating this error
FirebaseError: Function Query.where() called with invalid data. Unsupported field value: a custom DocumentRef object