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  

Returns:

Promise<T | undefined>