[solved] Firestore-array-field into string via derivative-field #973
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hey @webwurm, I tried recreating the issue you were facing. Firstly, I created a JSON field and set Default as an array to true. I replicated your Then, I created another Derivative column and set its Output Field Type to Short Text. Following is the Derivative function I created for displaying a particular element of the const derivative:Derivative = async ({row,ref,db,storage,auth})=>{
const data = row.tags[0]._key.path.segments[0]
return data
}After deploying, the function seems to work perfectly and returns the correct value for the array element. I wonder what seems to be the issue with your code. Could you share the complete JSON file so that I can help you figure this out? |
Beta Was this translation helpful? Give feedback.





Hey @webwurm, I tried recreating the issue you were facing. Firstly, I created a JSON field and set Default as an array to true. I replicated your
tagsdata, as in the screenshot above, and stored it in a row.Then, I created another Derivative column and set its Output Field Type to Short Text. Following is the Derivative function I created for displaying a particular element of the
segmentsarray:After deploying, the function seems to work perfectly and returns the correct value for the array element.
I wonder what seems to be the issue with your c…