appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.95k stars 3.66k forks source link

[Feature]-[500]:Firestore plugin - allow persisting of DocumentRef type in document #12651

Open sumitsum opened 2 years ago

sumitsum commented 2 years ago

Is there an existing issue for this?

Summary

From community:

I mean that the field in the firestore document that stores the document ref is always of type document ref, so that, when firestore is queried from any front end (be it appsmith, the native mobile app or else) gets a document reference type

I got a error that might portrait my issue in a better way
If the field in the document is not stored as a document referece, then when trying to query it from the native mobile app, an error similar to this is displayed
Error serializing doc Partner/[partner ID]:
Deserializing '[progress_units, ...' to 'ParnterRecord' failed due to: Deserializing '[path, partners/[partner ID], id, [partner ID]' to 'DocumentReference<Object>' failed due to: Expected a value of type 'DocumentReference<Object?>', but got one of type 'List<Object?>'

This should help: https://stackoverflow.com/questions/50012956/firestore-how-to-store-reference-to-document-how-to-retrieve-it

Why should this be worked on?

Community request. Firestore plugin enhancement.

rohan-arthur commented 2 years ago

Firestore 6m: 250 Assume 50% requirement: 125

ajinkyakulkarni commented 2 years ago

Stats

Stat Values
Reach 125
Effort (months) 0.50
st-trade commented 2 years ago

Hi! Any update on this?

sumitsum commented 2 years ago

Hi @st-trade , unfortunately, we have not been able to prioritize it yet.

st-trade commented 2 years ago

Hello! Any updates?

st-trade commented 2 years ago

Found a similar issue

https://github.com/appsmithorg/appsmith/issues/7176