Firestore does not easily let you filter/select on documentID; among other issues, FieldPath.documentId() returns the FULL PATH of the document, NOT just the id; see this question/answer for a fairly lengthy explanation of what is happening:
Firestore collection group query on documentId
it is possible to also copy the Id into a field in the document, and query by that (and I have my Firestore wrapper automatically helping with that) - BUT - this quickly become what I've seen called an "X-Y" question - asking "How do I do Y?" only because you already assume it's the answer to "How do I do X?"
The question is why do you want to query by the document ID? Is this ID a proxy for some other information (such as a way to identify the user)? If so, use the User ID as a field. In general, the documentId is more about Google Firestore efficiently sharding their database for performance than as a real identifier. Since the documentId is assumed to be unique (or, as the answer referenced explains, the full path to the document is unique), it's most often less useful for finding.
An analogy: using a documentId to find a document is like using a Municipal Parcel Number to designate an address. Sure it's unique, but "Division 46675 Tract 32567 Parcel 12344" is a lot less useful than "450 Lazy Deer Road, Winnetka, New Jersey".
So: in your case, ask yourself: where did you get that documentId from? What does it represent? Can I store that in my document instead so I can use a compound query?
firebase.firestore().collection('blog-posts').where([whatever query identifies the document or documents]).where('published', '==', 'true').get()
Note whether your first condition identifies one or identifies multiple documents, the response object will include an ARRAY, which may have one or more documents in it.
The best general advice for Firestore and other NoSQL databases is to spend the time identifying exactly how you want to use your data - i.e. your queries - and build your structure to make that easier. Remember, Firestore should be a tool to make your life easier, not to make you a slave to Firestore.