Skip to content

Commit

Permalink
CTC-2264 Fix example for list variants by collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jancerman committed Jan 29, 2024
1 parent 7204323 commit 10c8510
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/management-api-v2/cm_api_v2_get_variants_by_collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ const client = new ManagementClient({
// Gets the first page of results
const response = await client.listLanguageVariantsByCollection()
.byCollectionCodename('important_collection')
.toPromise();
.toPromise();

// Gets all pages of results
// const response = await client.listLanguageVariantsByCollection()
// .byCollectionCodename('important_collection')
// .toAllPromise();

0 comments on commit 10c8510

Please sign in to comment.