Skip to main content

Function: getCultivationsFromCatalogue()

getCultivationsFromCatalogue(fdm, principal_id, b_id_farm): Promise<any[]>

Defined in: fdm-core/src/cultivation.ts:36

Alpha

Retrieves cultivations available in the enabled catalogues for a farm.

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.

Returns

Promise<any[]>

A Promise that resolves with an array of cultivation catalogue entries.