Skip to main content

Fetching Database Actions

Fetch All Database Actions

Use the fetchDatabaseActions function with the database tag to retrieve all actions.

const actions = await ductape.product.databases.actions.fetchAll('mongo-db-tag');

Fetch a Single Database Action

Use the fetchDatabaseAction function with both the database tag and the action tag to fetch a specific action.

const action = await ductape.product.databases.actions.fetch('mongo-db-tag:create-user');