Function: getCultivation()
getCultivation(
fdm
,principal_id
,b_lu
):Promise
<getCultivationType
>
Defined in: fdm-core/src/cultivation.ts:314
Retrieves details of a specific cultivation after verifying access permissions.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The identifier of the principal requesting access.
b_lu
any
The unique identifier of the cultivation.
Returns
Promise
<getCultivationType
>
A promise that resolves with the cultivation details.
Throws
If no cultivation matches the provided identifier.
Remark
A permission check is performed to ensure the requesting principal has read access.