export async function cosmosDBTriggerAndOutput()

in app/v4-oldConfig/src/functions/cosmosDBTriggerAndOutput.ts [6:12]


export async function cosmosDBTriggerAndOutput(documents: unknown[], context: InvocationContext): Promise<unknown[]> {
    context.log(`cosmosDBTriggerAndOutput processed ${documents.length} documents`);
    for (const document of documents) {
        context.log(`cosmosDBTriggerAndOutput was triggered by "${(<any>document).testData}"`);
    }
    return documents;
}