Skip to main content

Getting DatabaseManager

Indexes

listIndexes

List all indexes for the app.

createIndex

Create an index on a collection.
Examples:

createIndexes

Bulk create indexes for a collection.

createWriteIndex

Create a write-priced index. Charges writers a fee on every /store call.

createReadIndex

Create a read-priced index. Charges readers a fee when the index is queried.

createCreatorPremiumIndex

Create a creator-premium index. Routes a portion of write revenue to the content creator.

dropIndex

Delete an index by ID.

Materialized Views

createView

Create a materialized view using a JSON query definition.

createViewSql

Create a materialized view using SQL with optional refresh mode.

queryView

Query data from a materialized view.

countView

Count records in a view with optional filter.

listViews

List all views for the app.

getView

Get a specific view definition.

refreshView

Manually refresh/rebuild view data.

deleteView

Delete a view.

API Collections

API Collections allow you to create collections backed by external APIs.

createApiCollection

listApiCollections / getApiCollection / deleteApiCollection

View with Aggregations

Aggregation Operators