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

Method findByTag

packages/context/src/context.ts:622–626  ·  view source on GitHub ↗

* Find bindings using the tag filter. If the filter matches one of the * binding tags, the binding is included. * * @param tagFilter - A filter for tags. It can be in one of the following * forms: * - A regular expression, such as `/controller/` * - A wildcard pattern string with o

(
    tagFilter: BindingTag | RegExp,
  )

Source from the content-addressed store, hash-verified

620 * `{name: 'my-controller'}`
621 */
622 findByTag<ValueType = BoundValue>(
623 tagFilter: BindingTag | RegExp,
624 ): Readonly<Binding<ValueType>>[] {
625 return this.find(filterByTag(tagFilter));
626 }
627
628 /**
629 * Find bindings by tag leveraging indexes

Callers 15

mainFunction · 0.95
component.unit.tsFile · 0.80
findKeysByTagFunction · 0.80
migrateSchemaMethod · 0.80
context.unit.tsFile · 0.80
loadAuthorizersFunction · 0.80

Calls 2

findMethod · 0.95
filterByTagFunction · 0.90

Tested by 2

findKeysByTagFunction · 0.64