setRequestContextValue
talawa-api • Docs
talawa-api / libraries/requestContext / setRequestContextValue
Function: setRequestContextValue()
> setRequestContextValue<T
>(key
, value
): T
Sets a value in the request context.
Type Parameters
• T
Parameters
• key: string
The key under which the value is stored.
• value: T
The value to store.
Returns
T
The stored value.