Skip to main content

sow-and-sub-aggregated

Import the Client and Command:

import { Client, Command } from 'amps';

Constructing the command:

const subCmd = new Command('sow_and_subscribe').topic(topic).options('oof,projection=[/id as /id, COUNT(values) as /valueCount],grouping=[/id]');

The command can now be used in execute.