Skip to main content

getMeasure

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-core/src / getMeasure

Function: getMeasure()

getMeasure(fdm, principal_id, b_id_measure): Promise<Measure>

Defined in: fdm-core/src/measure.ts:188

Fetches a single measure (joined with catalogue data) by its instance ID.

Parameters

fdm

PgDatabase

The FDM instance providing the connection to the database.

principal_id

any

The ID of the principal making the request.

b_id_measure

any

The instance ID of the measure.

Returns

Promise<Measure>

A Promise resolving to the Measure.