getFertilizer
@svenvw/fdm-source / fdm-core/src / getFertilizer
Function: getFertilizer()
getFertilizer(
fdm
,p_id
):Promise
<Fertilizer
>
Defined in: fdm-core/src/fertilizer.ts:253
Alpha
Retrieves the details of a specific fertilizer.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
p_id
any
The ID of the fertilizer.
Returns
Promise
<Fertilizer
>
A Promise that resolves with the fertilizer details.
Throws
If retrieving the fertilizer details fails or the fertilizer is not found.