Xbasic

Firestore Functions

Description

Xbasic functions for working with Google Firestore (NoSQL): CRUD, bulk import, queries, and basic user management. See also: https://firebase.google.com/docs/firestore

Name
Description
firestore_addDocument Function

Adds a new document to a Firestore collection.

firestore_bulkImportDocuments Function

Import multiple documents into a Firestore collection from a JSON array or a SQL query descriptor.

firestore_createUser Function

Create a new Firebase/Firestore user.

firestore_deleteDocument Function

Delete a Firestore document.

firestore_deleteUser Function

Delete a Firebase/Firestore user by uid.

firestore_getDocument Function

Get a single document by ID.

firestore_getUsers Function

Return a JSON array of users (email and uid).

firestore_query Function

Query a collection with optional filters, offset, and limit. Returns a list of matching documents.

firestore_updateDocument Function

Update an existing Firestore document.

firestore_validateUser Function

Validate a client-side Firebase auth token. Returns user info.