Skip to main content

Function: getFertilizer()

getFertilizer(fdm, p_id): Promise<getFertilizerType>

Defined in: fdm-core/src/fertilizer.ts:256

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<getFertilizerType>

A Promise that resolves with the fertilizer details.

Throws

If retrieving the fertilizer details fails or the fertilizer is not found.