Interfaces
FirestoreInspectOptions
Properties
| Property | Type | Description |
|---|---|---|
recentEventLimit? | number | Maximum number of recent requests and denials to return. Defaults to 10. |
FirestoreInspectReport
Stable JSON-serializable Firestore diagnostic used by Studio and tools.
Properties
Functions
inspect()
function inspect(sandbox: LocalSandbox, options?: FirestoreInspectOptions): FirestoreInspectReport;
Inspect Firestore rules, documents, and recent requests in one sandbox.
Parameters
| Parameter | Type |
|---|---|
sandbox | LocalSandbox |
options? | FirestoreInspectOptions |
Returns
seedDocuments()
function seedDocuments(sandbox: LocalSandbox, documents: Record<string, DocumentData>): LintResult;
Replace Firestore documents in bulk, preserving rules and bypassing evaluation.
Parameters
| Parameter | Type |
|---|---|
sandbox | LocalSandbox |
documents | Record<string, DocumentData> |
Returns
setRules()
function setRules(sandbox: LocalSandbox, source: string): LintResult;
Load Firestore Rules into one sandbox and notify its live listeners.
Parameters
| Parameter | Type |
|---|---|
sandbox | LocalSandbox |
source | string |
Returns
snapshotDocuments()
function snapshotDocuments(sandbox: LocalSandbox): Record<string, DocumentData>;
Snapshot only Firestore documents without traversing other sandbox services.
Parameters
| Parameter | Type |
|---|---|
sandbox | LocalSandbox |
Returns
Record<string, DocumentData>