XYO Platform SDK - v3.10.6
    Preparing search index...
    reducePayloadsArray: <T extends Payload = Payload>(
        payloadsArray: Payload[][],
        payloadTransformers: SchemaToPayloadTransformersDictionary,
        destinationSchema: string,
        excludeSources?: boolean,
    ) => Promise<T[]>

    Reduces the arrays of payload arrays to an array of payloads using the supplied transformers

    Type declaration

      • <T extends Payload = Payload>(
            payloadsArray: Payload[][],
            payloadTransformers: SchemaToPayloadTransformersDictionary,
            destinationSchema: string,
            excludeSources?: boolean,
        ): Promise<T[]>
      • Type Parameters

        Parameters

        • payloadsArray: Payload[][]

          The arrays of payloads to reduce

        • payloadTransformers: SchemaToPayloadTransformersDictionary

          The transformers to use to convert the payloads to the destination payloads

        • destinationSchema: string
        • OptionalexcludeSources: boolean

          Exclude the source hashes from the destination payload

        Returns Promise<T[]>

        The reduced payloads