Page Contents
Home > @loopback/context > Context > getOwnerContext
Context.getOwnerContext() method
Get the owning context for a binding or its key
Signature:
getOwnerContext(keyOrBinding: BindingAddress | Readonly<Binding<unknown>>): Context | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
keyOrBinding | BindingAddress | Readonly<Binding<unknown>> | Binding object or key |
Returns:
Context | undefined