FDL
Purpose
The FDL (Firebase Dynamic Links) collection defines the structure of deep links associated with catalogs and models.
Its purpose is to manage shareable and trackable links that point to specific catalogues or models inside the VTO platform.
Document schema
{
"catalogue": "string",
"deeplink": "string",
"link": "string",
"model": "string"
}
Indexes
- catalogue is a
stringreferencing the ID of theBrandcollection; - model is a
stringreferencing the ID of theModellocollection.
Query examples
// Fetch the Reference Doc from Firebase
const fdlRefDoc = doc(db, "FDL", fdlId);
const fdlSnap = await getDoc(fdlRefDoc);
// Query FDL by catalogue reference
const fdlByCatalogue = query(
collection(db, "FDL"),
where("catalogue", "==", catalogueId)
);
// Query FDL by model reference
const fdlByModel = query(
collection(db, "FDL"),
where("model", "==", modelId)
);