Home > @uniformdev/mesh-edgehancer-sdk > convertBatchResultsToEdgehancerResult

convertBatchResultsToEdgehancerResult() function

Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.

Signature:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

{ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }

</td><td>

ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>

</td><td>

</td></tr> </tbody></table> Returns:

{ errors?: string[] | undefined; warnings?: string[] | undefined; infos?: string[] | undefined; surrogateKeys?: string[] | undefined; result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined; }[]