Skip to main content

sow-topn

Import the Client and Command:

import { Client, Command } from 'amps';

Constructing the command:

const subCmd = new Command('sow').topic(topic).options('top_n=5').orderby('/name ASC, /orderID DESC');

The command can now be used in execute.