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