getRequestContextValue
talawa-api • Docs
talawa-api / libraries/requestContext / getRequestContextValue
Function: getRequestContextValue()
> getRequestContextValue<T
>(key
): T
Gets a value from the request context.
Type Parameters
• T
Parameters
• key: string
The key under which the value is stored.
Returns
T
The retrieved value.