Skip to main content

foundation-comms.connect.getmetadata

Home > @genesislcap/foundation-comms > Connect > getMetadata

Connect.getMetadata() method

Retrieves the metadata for the specified resource.

Signature:

getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;

Parameters

Parameter

Type

Description

resourceName

string

The name of the resource to retrieve the metadata for.

useCache

boolean

(Optional) Whether to use the cached metadata if available. Default: true.

Returns:

Promise<Metadata>

A promise that resolves with the metadata.