Function: getFertilizers()
getFertilizers(
fdm
,principal_id
,b_id_farm
):Promise
<getFertilizerType
[]>
Defined in: fdm-core/src/fertilizer.ts:477
Alpha
Retrieves fertilizer details for a specified farm.
This function verifies that the requesting principal has read access to the farm, then queries the database to return a list of fertilizers along with their catalogue and application details.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The ID of the principal making the request.
b_id_farm
any
The ID of the farm for which the fertilizers are retrieved.
Returns
Promise
<getFertilizerType
[]>
A promise that resolves with an array of fertilizer detail objects.