Firestore
Firestore User Document CRUD Helpers
Update Only The Email Field
Query Active Users from Firestore
Merge Upsert User Profile
Add Todo and Count Documents
Delete Doc and Field With Firestore
Products In Price Range Query
Cursor-Based User Pagination
Atomic View Counter With increment()
Top Scores With Multi-Field `orderBy`
Post Comments Subcollection Helpers
Conditional Server Timestamps Helper
Atomic Group Membership Updates
Query Users By Role With `in` And `not-in`
Count Active Orders With Aggregation
Validated Contact Write to Firestore
Events In Timestamp Window
Atomic Fund Transfer With runTransaction
Chunked Batched Writes With bulkInsert
Recent Comments via collectionGroup Query
Atomic Seat Reservation Transaction
Idempotent Order Creation With Transaction
Sharded Counter in Firestore
Denormalize Author and Fan Out Timeline
Recursive Collection Deletion in Batches
Authentication
Create User With Admin SDK
Set User Role Custom Claim
Read Role From Custom Claims
Toggle Auth Account Disabled State
Sync Auth User To Firestore
Paginate listUsers With nextPageToken
Role Hierarchy Authorization Helpers
Delete Auth User and Profile
Map UserRecord To Stable DTO
Idempotent User Provisioning Routine
Bulk Import Users With Admin SDK
Enforce Sole Admin Custom Claim
Revoke User Sessions With Admin SDK
Security Rules
Owner-Only Profile Access Rules
Restrict Note Reads to Signed-In Users
Public Read, Authenticated Write Rules
Owner-Only Access in Firestore Rules
Admin-Only Access via Custom Claim
Strict Create Validation for Posts
Immutable createdAt in Firestore Rules
Firestore Rules for Comments Collection
Validate Order Writes in Firestore Rules
Reusable Rules Functions for Owner Access
Immutable ownerId in Firestore Rules
Prevent Role Escalation in Security Rules
Membership-Gated Project Read Rule
Recursive Wildcard Rules for User Subtrees
Enforce Server Timestamp on Create
Cloud Functions
Increment Parent commentCount on Comment Create
onCommentDeleted Comment Count Trigger
createProject Callable Function
Cascade-Delete Sessions on User Deletion
Admin-Only deleteTeam Callable
Secured GitHub Webhook Function
Denormalize displayName To Posts
submitScore HTTP Function With Max Upsert
onMembershipDeleted Firestore Trigger
inviteMember Callable With HttpsError
Fan-Out Post to Follower Feeds
Idempotent Like Counter Trigger
Order Rollup Firestore Trigger
Idempotent processPayment Callable Function
Firestore Audit Trail Trigger
Atomic Fund Transfer Callable
Aggregate Counts on Task Completion