map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function mergeMetadata

    • Helper to filter store metadata based on a partial metadata configuration.

      Parameters

      • filterMetadataDefinition: Partial<Metadata> = {}

        this metadata will be merged with the originalMetadata. Only fields listed in this metadata definition are available in the merged result. Fields will only be merged if they match a field in the original metadata. If the filterMetadataDefinition has 'undefined' fields the original fields are used.

      • originalMetadata: Partial<Metadata> = {}

        The source metadata.

      • idPropertyName: string

        property used to represent the ID

      Returns Metadata

      new metadata with combined properties.