MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / createView

Method createView

packages/context/src/context.ts:446–454  ·  view source on GitHub ↗

* Create a view of the context chain with the given binding filter * @param filter - A function to match bindings * @param comparator - A function to sort matched bindings * @param options - Resolution options

(
    filter: BindingFilter,
    comparator?: BindingComparator,
    options?: Omit<ResolutionOptions, 'session'>,
  )

Source from the content-addressed store, hash-verified

444 * @param options - Resolution options
445 */
446 createView<T = unknown>(
447 filter: BindingFilter,
448 comparator?: BindingComparator,
449 options?: Omit<ResolutionOptions, 'session'>,
450 ) {
451 const view = new ContextView<T>(this, filter, comparator, options);
452 view.open();
453 return view;
454 }
455
456 /**
457 * Check if a binding exists with the given key in the local context without

Callers 10

mainFunction · 0.95
mainFunction · 0.95
viewFunction · 0.80
constructorMethod · 0.80
givenContextViewFunction · 0.80
givenViewForControllersFunction · 0.80
getResolverClassesMethod · 0.80
getMiddlewareListMethod · 0.80
constructorMethod · 0.80
mainFunction · 0.80

Calls 1

openMethod · 0.95

Tested by 2

givenContextViewFunction · 0.64
givenViewForControllersFunction · 0.64