SheetStore

🧾 Documentation

Import SheetStore:

import { getDocs, getDoc, addDoc, updateDoc, deleteDoc } from 'sheetstore';

Fetching All Documents

const users = await getDocs(sheetId, sheetName);

Fetching a Single Document

const user = await getDoc(sheetId, sheetName, userId);

Adding a New Document

await addDoc(sheetId, sheetName, { name: 'John' });

Updating a Document

await updateDoc(sheetId, sheetName, userId, { age: 31 });

Deleting a Document

await deleteDoc(sheetId, sheetName, userId);

🧪 Live Runner