Get Collection with Snapshot
const conditions = [
{ field: "field_1", operator: "==", value: "value_1" },
// Add more conditions if needed
];
const sortBy = { field: "field_sort", direction: "asc" };
try {
const res = await getCollectionWithSnapshotFirebase(
"CollectionName",
conditions,
sortBy
);
console.log(res);
} catch (error) {
console.log(error);
}Last updated