firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.15k stars 184 forks source link

Need to update a parent collection based on sub collection data. How to do that ? #510

Closed johnvinosh closed 3 months ago

johnvinosh commented 1 year ago

For a blog app, I have sub collection for each locale. I want to update a slug on parent collection based on blog title on sub locale collection. How to achieve this using callbacks ?

fgatti675 commented 3 months ago

Super late but: In the callback you have a context and you can access the dataSource from there. You can use it to update data as you see fit. Or you could achieve the same using a cloud function