MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / listCatalogs

Function listCatalogs

retail/quickstart.js:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 const client = new CatalogServiceClient();
28
29 async function listCatalogs() {
30 const catalogs = await client.listCatalogs({
31 parent: `projects/${projectId}/locations/${location}`,
32 });
33 console.info(catalogs);
34 }
35 listCatalogs();
36 // [END nodejs_retail_quickstart]
37}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected