Page Contents

Home > @loopback/context > ContextView > singleValue

ContextView.singleValue() method

Get the single value

Signature:

singleValue(session?: ResolutionOptionsOrSession): Promise<T | undefined>;

Parameters

Parameter Type Description
session ResolutionOptionsOrSession (Optional)

Returns:

Promise<T | undefined>