š The Final Twist: It Was There All Along (Scroll Down!)
After debugging for hours, double-checking write logic, adding visibility flags, and even diving into Firestoreās recursive collection behaviorā¦
It turns out the real bug was in my scroll wheel.
Thatās right ā Firestore doesnāt always make it obvious that the subcollection list in the right-hand panel is scrollable. If youāve got more than two or three subcollections (like plans
, masterplans
, llm_logs
, etc.), you may need to scroll down to see profiles
or whatever collection you’re looking for.
Thereās no scroll indicator.
No fade-out hint.
Just⦠nothing.
So before you go rewriting your backend or blaming Firebase ā try scrolling.
š§ Lesson: Sometimes the invisible collection isnāt ghosted⦠it’s just shy.
But if that still doesn’t solve anything… try this –>
If youāve been debugging your Firestore backend and swearing at your screen because a document isnāt showing up, this might sound familiar. Thereās a frustrating issue where your Firestore collection doesnāt appear in the console ā even though your write succeeded.
This invisible collection bug is a UI issue, not a backend error. Firestore collections can be written successfully via .set()
but remain hidden in the Firebase console until manually revealed.
šļø Firestore Collection Not Showing? Here’s Why
The Firebase console has an irritating behavior:
- Newly created subcollections (like
athletes/{id}/plans
) often donāt appear immediately. - The Firestore UI doesnāt refresh automatically after a backend
.set()
call. - If a collection contains only one small document or lacks indexed fields, it may stay hidden.
- No error. No warning. Just nothing.
So youāre left asking:
- Did my
.set()
fail? - Are my security rules blocking it?
- Is my Firestore collection not showing because of a bug?
Nope. Itās a UI quirk.
š See Firestore documentation on data model for more background.
šļø Fixing Firestore’s Invisible Collection Bug
Hereās how to force Firestore to reveal the hidden data:
- Click the 3-dot menu
ā®
next to the parent doc (e.g.amara_johnson_1
) - Select “View Document”
- Then click the
plans
subcollection - You should now see document
1
- š¬ Confirm itās working by expanding the document structure as described in the Firestore UI guide.

š¬ Bonus Debug Tip: Read After Write
To avoid trusting Firestore blindly, always follow your .set()
with a .get()
like this:
ref.set(data)
print("ā
Saved document.")
saved = ref.get()
print("š Confirmed document:", saved.to_dict())
This guarantees youāre not hallucinating when you think something was written.
š Bonus Tip: Always Add Timestamps
Firestore collections can sometimes fail to show up in the UI if the document exists but has no meaningful fields. To prevent this, always add createdAt
and updatedAt
timestamps when creating a document:
ref.set({
'createdAt': firestore.SERVER_TIMESTAMP,
'updatedAt': firestore.SERVER_TIMESTAMP
}, merge=True)

This ensures:
- The document isnāt āemptyā in Firestoreās eyes.
- The collection becomes visible even if no other data has been added yet.
Adding a simple visible: true
flag also helps with debugging.
š¬ļø When Firestore Misleads You
Firebase Firestore is powerful, real-time, and scalable. But the console UI still has edge cases that can send you on wild goose chases.
Next time your Firestore collection isnāt showing, donāt panic. Try this visibility trick before rewriting your logic.
First: trick the Firestore console into showing what it already has.
š Related Posts
- Why Cursor + Claude 3.7 Sonnet Gets Stuck on One File (and How to Fix It)
- Local LLMs: Their Limitations in Adaptive Coaching Systems
Leave a Reply