Skip to main content
Version: 1.0.0

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 string referencing the ID of the Brand collection;
  • model is a string referencing the ID of the Modello collection.

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)
);