Tags
Purpose
The Tags collection organizes and categorizes metadata used to describe and filter products within the ARShades ecosystem. Each document in this collection represents a single tag, which can be associated with products to enable advanced search, filtering, and grouping functionalities in catalogues and product listings.
Document schema
{
"catalogRef": "string",
"group": "string",
"groupOrder": "number",
"name": "string",
"type": "string"
}
Indexes
- catalogRef is a
stringthat refers to the ID of theCataloguescollection.Note: this index is present only for tags with type field equal to "line".
Query examples
// Fetch every tag in Tags collection
const tagsCollection = collection(db, "Tags");
// Get every Document Snapshot from the collection
const tagsSnapshot = await getDocs(tagsCollection);