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

Function lookup

datacatalog/cloud-client/lookupEntry.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const datacatalog = new DataCatalogClient();
31
32 const lookup = async () => {
33 // TODO(developer): Uncomment the following lines before running the sample.
34 // const projectId = 'my-project'
35 // const datasetId = 'my_dataset'
36 const resourceName = `//bigquery.googleapis.com/projects/${projectId}/datasets/${datasetId}`;
37 const request = {linkedResource: resourceName};
38 const [result] = await datacatalog.lookupEntry(request);
39 return result;
40 };
41
42 const response = await lookup();
43 console.log(response);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected