Function: getHarvest()
getHarvest(
fdm
,principal_id
,b_id_harvesting
):Promise
<HarvestType
>
Defined in: fdm-core/src/harvest.ts:155
Retrieves harvest details for a specific record.
This function verifies the read permission for the requesting principal before obtaining and returning the harvest data. An error is thrown if the harvest is not found.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
Identifier of the principal requesting the harvest.
b_id_harvesting
any
Unique identifier for the harvest.
Returns
Promise
<HarvestType
>
A promise that resolves with the harvest details.
Throws
When the specified harvest record does not exist.