OR
operator is not accepted in firebase firestore:
Cloud Firestore provides limited support for logical OR queries. The in, and array-contains-any operators support a logical OR of up to 10 equality (==) or array-contains conditions on a single field. For other cases, create a separate query for each OR condition and merge the query results in your app.
Queries in Cloud Firestore, Query limitations
Normally using firebase syntax you can call two collections:
const res1 = async collection("posts", ref => ref.where('blogId', '==', 1).get();
const res2 = async collection("posts", ref => ref.where('blogId', '==', 2).get();
and you can merge the results before serving to the view.
But in this case where you have blogIds you can use this syntax:
collection("posts").orderBy('blogId').startAt(1).endAt(2);
e.d