Query issue

Troubleshooting

Im trying to build a query that loads the document users/{currentUserUid}/days/{yyyy-MM-dd} on my DayOverview page.

Doc type chosen in the dialog:

  • Query Type: Document from Reference

  • Collection: days

  • Query Type inside box: Single Document

According to the docs ( https://docs.flutterflow.io/resources/backend-query/document-from-reference ) you should:

  1. put a parent reference that points to the current user (users/{uid})

  2. set the Document Id to today’s date.

    What actually happens

    • In the “users Reference (Optional)” UNSET field I open Set Variable.

    • I do see Authenticated User in the list, but only scalar values (Email, User ID, …).
      User ID is greyed out because the field expects a DocumentReference, not a string.

    • If I try entering raw code like

      FirebaseFirestore.instance.doc('users/' + currentUserUid)

      the field stays red with “type mismatch”.

    Result: I cannot give the query a valid parent reference.

What have you tried so far?

What I have tried so far

  • Verified Authentication is enabled in FlutterFlow and connected to the same Firebase project (green “Synced”).

  • Email/Password sign-in enabled in Firebase Console; user is created and shown in Auth › Users.

  • Logged in through “Test Mode”; Debug panel confirms session.

  • Reloaded editor tab, incognito browser, cleared cache – Firestore › Document Reference section still missing.

  • Alternative path: “Query Collection → Single Document” and +Add Collection Level – same blocker because parent reference cannot be set.


    I have used the chatgpt to run a deep analysis of how i could continue without luck. I am definitely overseeing something.

    Sorry for the very ChatGPT written, but it is better to explain it then i am.

    Thank you in advance!

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