Skip to main content
Version: 1.0.0

QrCodeSession

Purpose​

The QrCodeSession collection defines the structure for sessions generated through QR codes.
Its purpose is to store the link associated with a QR code, allowing users to access specific resources or experiences.

Document schema​

{
"link": "string"
}

Indexes​

This collection does not have external indexes.

Query examples​

// Fetch the Reference Doc from Firebase
const qrCodeSessionRefDoc = doc(db, "QrCodeSession", qrCodeSessionId);
const qrCodeSessionSnap = await getDoc(qrCodeSessionRefDoc);

// Query by link
const qrCodeByLink = query(
collection(db, "QrCodeSession"),
where("link", "==", "https://example.com/session/123")
);