Skip to main content

sow-aggregated

Import the Client and Command:

import { Client, Command } from 'amps';

Constructing the command:

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

The command can now be used in execute.