FirebaseError: Unknown field filter op.というエラーが出たとき

投稿者:

めっちゃ単純なんですがFIeldの比較条件間違えてました(=じゃなくて==)

// NG ❌ =
collection.where("field", "=", value)
// OK ⭕ ==
collection.where("field", "==", value)

↓他につかえる条件は↓

https://github.com/googleapis/nodejs-firestore/blob/207c9359e369b6838f026fd62ff56df39332dcff/types/firestore.d.ts#L1478-L1493

Firebaseによるサーバーレスシングルページアプリケーション (技術の泉シリーズ(NextPublishing))