const querySnap = collection.where(firebase.firestore.FieldPath.documentId(), '<', '100').get();
といった風に FieldPath.documentId() を使う。
FYI: https://stackoverflow.com/questions/48466028/query-firebase-firestore-documents-by-the-id/48467056