From 10c851003b8731ffe921f957f5ad7160ee8a610d Mon Sep 17 00:00:00 2001 From: Jan Cerman Date: Mon, 29 Jan 2024 12:50:23 +0100 Subject: [PATCH] CTC-2264 Fix example for list variants by collection --- .../cm_api_v2_get_variants_by_collection.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/management-api-v2/cm_api_v2_get_variants_by_collection.js b/js/management-api-v2/cm_api_v2_get_variants_by_collection.js index 02f02eb4..bf8828f9 100644 --- a/js/management-api-v2/cm_api_v2_get_variants_by_collection.js +++ b/js/management-api-v2/cm_api_v2_get_variants_by_collection.js @@ -10,4 +10,9 @@ const client = new ManagementClient({ // Gets the first page of results const response = await client.listLanguageVariantsByCollection() .byCollectionCodename('important_collection') - .toPromise(); \ No newline at end of file + .toPromise(); + +// Gets all pages of results +// const response = await client.listLanguageVariantsByCollection() +// .byCollectionCodename('important_collection') +// .toAllPromise(); \ No newline at end of file