Aggregates client

The SDK provides an Aggregates client to get a specific aggregate for a specific entity.

Note

In the following code example, the client variable refers to the ContentHubClient instance. When using the JavaScript SDK, you can choose your own variable name, but it is called client at instantiation in the documentation.

Get an aggregate

For example, the following snippet gets the Asset aggregate for the 9490 entity:

RequestResponse
const aggregateResource = await client.aggregates.getAsync("Asset", 9490);

Do you have some feedback for us?

If you have suggestions for improving this article,