Add a metadata key-value pair.
In contrast to MetadataBuilder.set, this method adds a value to the metadata key. For properties that can have only a single value, use MetadataBuilder.set instead.
Build the metadata object.
The parsed metadata object.
Optional
additional?: Record<string, string>Optional
contributor?: string | string[]Optional
coverage?: stringOptional
format?: stringOptional
relation?: string | string[]Optional
source?: string | string[]Optional
subject?: string | string[]Set a metadata key-value pair.
In contrast to MetadataBuilder.add, this method sets a single value for the metadata key. For properties that can have multiple values, use MetadataBuilder.add to add a value instead.
Static
createCreate a new instance of the MetadataBuilder class.
A builder class for the metadata object.
Example