Function: firestoreToCMSModel
▸ firestoreToCMSModel(data
): any
Recursive function that converts Firestore data types into CMS or plain JS types. FireCMS uses Javascript dates internally instead of Firestore timestamps. This makes it easier to interact with the rest of the libraries and bindings. Also, Firestore references are replaced with EntityReference
Parameters
Name | Type |
---|---|
data | any |
Returns
any