·CTO at ALSAFSAF

Why isn't "Document from Reference" working for a subcollection in FlutterFlow?

Database & APIs

Hi, I'm working on a FlutterFlow project using Firebase, and I'm facing an issue with subcollections. I have a parent document and a subcollection, and I’m trying to query a specific document inside the subcollection using the "Document from Reference" backend query.

User select lesson (subcollection) from lesson list in course (collection). Pass the lesson reference to lesson page must to find document using Document from reference and return the document to show its data.

Here’s the situation:

  • I’ve confirmed that the parent document exists and is correctly referenced.

  • The subcollection and the target document also exist with the right structure.

  • The query keeps running without returning any results, even though the reference is correct.

What have you tried so far?

I’ve also:

  • Verified that Firestore Security Rules allow reading the document.

  • Double-checked the references and database structure.

  • Tested directly in Firebase Console, and it works fine there.

Has anyone faced a similar issue or knows what might be wrong with this setup in FlutterFlow? Any tips or workarounds would be appreciated!

Did you check FlutterFlow's Documentation for this topic?
Yes
2
2 replies