Linoy Bar-Gal
ย ยทย CEO at Sorti

Issue with Handling Firestore Document References in API Post Requests

Resolved

Hello FlutterFlow Community,

I'm reaching out to discuss a challenge I've been experiencing with FlutterFlow and Firestore, particularly regarding API post requests that include Firestore document references. I'm hoping to gather insights or potential solutions from the community.

Issue Description:

In my FlutterFlow application, I'm making an API post request that receives a response containing Firestore document references. Despite trying various methods, FlutterFlow doesn't seem to correctly present or handle these references. The approaches I've taken are:

  1. Sending the full Firestore document reference path as a string.

  2. Sending the document reference itself

In both scenarios, the API call is successful, and I receive the response correctly as a string. However, the Firestore document references are not handled as expected in FlutterFlow.

  • I've used the JSON convert to data type option in FlutterFlow, setting up the data type object to match the expected structure :

  • Ensuring the response format is compatible with what FlutterFlow expects.

Despite these efforts, the issue remains unresolved.

Has anyone encountered a similar situation? How did you manage to resolve it? I'm particularly interested in understanding the use of the JSON convert to data type feature.

Thank you all in advance for your help and support!
Linoy

2
5 replies