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]: Specify the type of data to load in Firestore #20691

Open felix-appsmith opened 1 year ago

felix-appsmith commented 1 year ago

Is there an existing issue for this?

Summary

In Firestore it is not possible to select what type of data we want to load it is true that we can put an array, a boolean or a number and Firestore will detect the type of data but when trying to load a reference Appsmith does not know what it is trying to send, and it fails and if we put it inside " " Firestore will take this as a string instead of a reference.

In Appsmith we should be able to select the data type just like we can do in firestore I attach an example image: image

And right now, this is the way to upload the files to Firestore from Appsmith: image

Why should this be worked on?

By allowing users to specify the type of data that we are going to send to our Firestore we save ourselves problems like this that we cannot load a reference to Firestore.

Front logo Front conversations

felix-appsmith commented 1 year ago

Currently there is this workaround to send data of type reference.

{
"ref_object": {
  "path" : "collection/OBJECTID",
  "id" : "collection/OBJECTID"
},
"field": "value"
}