getFertilizersFromCatalogue
@nmi-agro/fdm-source / fdm-core/src / getFertilizersFromCatalogue
Function: getFertilizersFromCatalogue()
getFertilizersFromCatalogue(
fdm,principal_id,b_id_farm):Promise<FertilizerCatalogue[]>
Defined in: fdm-core/src/fertilizer.ts:39
Alpha
Retrieves all fertilizers from the enabled catalogues for a farm.
Parameters
fdm
PgDatabase
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.
Returns
Promise<FertilizerCatalogue[]>
A Promise that resolves with an array of fertilizer catalogue entries.