For the complete documentation index, see llms.txt. This page is also available as Markdown.

Test Database Aggregate

Test-run an aggregation pipeline with caller-supplied tokens.

An aggregate is a saved MongoDB aggregation pipeline you can run to compute, group, and summarise data. Tests the database aggregate.

This method is on the Hub surface (norbix.hub.database) β€” call it from admin tooling or IaC.

These examples assume the SDK is installed and your credentials are set as environment variables β€” each client reads them automatically, so the constructors below take no arguments. See Install a Norbix SDK.

import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.database.testDatabaseAggregate({
  collectionName: 'orders',
  pipeline: '[{"$match":{"status":"active"}}]',
  databaseIntegrationId: 'int_4kX9mQvR2tYw7ZbC1dFgHj',
});
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Database.TestDatabaseAggregateAsync(new TestDatabaseAggregateRequest
{
    CollectionName = "orders",
    Pipeline = "[{\"$match\":{\"status\":\"active\"}}]",
    DatabaseIntegrationId = "int_4kX9mQvR2tYw7ZbC1dFgHj",
});
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.database.test_database_aggregate(
    collectionName="orders",
    pipeline="[{\"$match\":{\"status\":\"active\"}}]",
    databaseIntegrationId="int_4kX9mQvR2tYw7ZbC1dFgHj",
)

In the dashboard

Manage this visually in Norbix Cloud β€” see Database β†’ Aggregates.

API reference

Full request and response for this endpoint: Test Database Aggregate.

Last updated