query collection with a filter on ref KO

Troubleshooting
Resolved

Hello, I have a simple search on a text field that display the name of a destination and save in a page state the document reference of this destination on change focus

when pressing a button of the page, it needs to save data among which the destination document reference in another collection (it works from what I see in Firebase - porto in the pic attached). I save it from the page state (image 2 attached)

in my collection activities I have also an attribute destination that is a document ref of /destinations. I try to filter with the page state destRef but when I only use this filter it returns nothing. even if I am sure that I have some /activities/{id}/destination/{/destinations/Porto}

Not sure why it returns no document. (the second filter is one I added as a OR to ensure it returns something so that I can read the results.

What have you tried so far?

try to read directly from the saved data in /itineraries instead of the page state but result is the same

Did you check FlutterFlow's Documentation for this topic?
No
4
3 replies