Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/loopbackio/loopback-next
/ functions
Functions
4,891 in github.com/loopbackio/loopback-next
⨍
Functions
4,891
◇
Types & classes
3,088
↓ 50 callers
Method
toString
()
packages/context/src/binding-key.ts:46
↓ 49 callers
Method
getApiSpec
* Get the OpenAPI specification describing the REST API provided by * this application. * * This method merges operations (HTTP endpoints) fr
packages/rest/src/rest.server.ts:835
↓ 49 callers
Function
invokeMethod
( target: object, method: string, ctx: Context, nonInjectedArgs: InvocationArgs = [], options: Invoc
packages/context/src/invocation.ts:169
↓ 47 callers
Method
patch
* Patch the related target model instance * @param dataObject - The target model fields and their new values to patch * If the target models ar
packages/repository/src/relations/has-one/has-one.repository.ts:73
↓ 46 callers
Method
add
(a: number, b: number)
packages/core/src/__tests__/unit/service.unit.ts:61
↓ 46 callers
Method
on
(event: string | symbol, listener: (...args: any[]) => void)
packages/context/src/binding.ts:1062
↓ 46 callers
Method
static
* Mount static assets to the REST server. * See https://expressjs.com/en/4x/api.html#express.static * @param path - The path(s) to serve the ass
packages/rest/src/rest.server.ts:794
↓ 43 callers
Function
getDummyUser
(overwrite = {})
extensions/sequelize/src/__tests__/integration/repository.integration.ts:1554
↓ 42 callers
Function
getJsonSchema
( ctor: Function & {prototype: T}, options?: JsonSchemaOptions<T>, )
packages/repository-json-schema/src/build-schema.ts:117
↓ 42 callers
Method
serialize
* Serialize a value into json * @param value - The value of this type * @param options - Options for serialization
packages/repository/src/types/type.ts:50
↓ 42 callers
Method
toString
()
packages/rest/src/router/base-route.ts:50
↓ 40 callers
Method
add
* Add a route to the router * @param route - A route entry
packages/rest/src/router/rest-router.ts:18
↓ 40 callers
Function
jsonToSchemaObject
( json: JsonSchema, visited: Map<JsonSchema, SchemaObject | SchemaRef> = new Map(), )
packages/openapi-v3/src/json-to-schema.ts:43
↓ 40 callers
Method
keys
* Get an Iterator for matching keys * * @param filter - Filter for keys * @param options - Options for the operation * @returns An async i
packages/repository/src/repositories/kv.repository.ts:86
↓ 40 callers
Method
properties
(names: string[])
packages/testlab/should-as-function.d.ts:104
↓ 40 callers
Method
use
(fn: (should: Internal, Assertion: Assertion) => void)
packages/testlab/should-as-function.d.ts:198
↓ 39 callers
Function
belongsTo
( targetResolver: EntityResolver<T>, definition?: Partial<BelongsToDefinition>, propertyDefinition?: Par
packages/repository/src/relations/belongs-to/belongs-to.decorator.ts:20
↓ 39 callers
Function
extensionFor
( ...extensionPointNames: string[] )
packages/core/src/extension-point.ts:267
↓ 38 callers
Method
updateById
* Update an entity by id * @param modelClass - The model class * @param id - The entity id value * @param data - The data attributes to be up
packages/repository/src/connectors/crud.connector.ts:132
↓ 37 callers
Method
load
* Load phase of the Booter. It should bind the artifacts in this phase.
packages/boot/src/types.ts:62
↓ 37 callers
Method
null
()
packages/testlab/should-as-function.d.ts:177
↓ 37 callers
Method
sequence
* Configure a custom sequence class for handling incoming requests. * * @example * ```ts * class MySequence implements SequenceHandler {
packages/rest/src/rest.server.ts:911
↓ 37 callers
Method
subscribe
* Add a context event observer to the context * @param observer - Context observer instance or function
packages/context/src/context.ts:405
↓ 37 callers
Method
toLowerCase
(@param.path.string('text') text: string)
packages/rest/src/__tests__/acceptance/caching-interceptor/caching-interceptor.acceptance.ts:68
↓ 36 callers
Method
String
()
packages/testlab/should-as-function.d.ts:59
↓ 36 callers
Method
component
(component: Class<unknown>, name?: string)
packages/repository/src/mixins/repository.mixin.ts:340
↓ 36 callers
Function
createParamShortcut
( source: ParameterLocation, options: ParamShortcutOptions, )
packages/openapi-v3/src/decorators/parameter.decorator.ts:498
↓ 36 callers
Function
del
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:67
↓ 36 callers
Method
skip
* Alias to `offset` * @param skip
packages/filter/src/query.ts:572
↓ 36 callers
Method
withOperation
* Define a new OperationObject at the given path and verb (method). * * @param verb - The HTTP verb. * @param path - The path relative to bas
packages/openapi-spec-builder/src/openapi-spec-builder.ts:111
↓ 35 callers
Function
BootMixin
(superClass: T)
packages/boot/src/mixins/boot.mixin.ts:46
↓ 35 callers
Method
empty
()
packages/testlab/should-as-function.d.ts:51
↓ 35 callers
Function
filter
()
packages/context/src/__tests__/unit/binding-filter.unit.ts:172
↓ 35 callers
Function
readSourceFile
(relativePath)
packages/cli/test/fixtures/relation/index.js:296
↓ 35 callers
Method
unbind
* Unbind a binding from the context. No parent contexts will be checked. * * @remarks * If you need to unbind a binding owned by a parent con
packages/context/src/context.ts:388
↓ 34 callers
Method
defineMetadata
* define metadata for a target class or it's property/method
packages/metadata/src/reflect.ts:27
↓ 34 callers
Function
once
(emitter: EventEmitter, event: string | symbol)
extensions/health/src/observers/health.observer.ts:86
↓ 34 callers
Method
route
( routeOrVerb: RouteEntry | string, path?: string, spec?: OperationObject, controllerCtorOrHan
packages/rest/src/rest.server.ts:686
↓ 34 callers
Function
whenIMakeRequestTo
(serverOrApp: HttpServerLike)
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:873
↓ 33 callers
Method
end
()
packages/cli/generators/example/index.js:170
↓ 33 callers
Function
hasMany
( targetResolver: EntityResolver<T>, definition?: Partial<HasManyDefinition>, )
packages/repository/src/relations/has-many/has-many.decorator.ts:18
↓ 33 callers
Method
updateAll
* Updating matching records with attributes from the data object * @param dataObject - The data to be updated * @param where - Matching criteria
packages/repository/src/repositories/repository.ts:106
↓ 32 callers
Function
createProduct
(properties: Partial<Product>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/relations-helpers-fixtures.ts:159
↓ 32 callers
Method
deleteById
* Delete an entity by id * @param modelClass - The model class * @param id - The entity id value * @param options - Options for the operation
packages/repository/src/connectors/crud.connector.ts:176
↓ 32 callers
Method
replaceById
* Replace an entity by id * @param modelClass - The model class * @param id - The entity id value * @param data - The data attributes to be u
packages/repository/src/connectors/crud.connector.ts:148
↓ 32 callers
Method
toUpperCase
(@param.path.string('text') text: string)
packages/rest/src/__tests__/acceptance/caching-interceptor/global-caching-interceptor.acceptance.ts:118
↓ 31 callers
Method
close
* Close the context: clear observers, stop notifications, and remove event * listeners from its parent context. * * @remarks * This method
packages/context/src/context.ts:426
↓ 31 callers
Method
count
* Count matching records * @param where - Matching criteria * @param options - Options for the operations * @returns A promise of number of r
packages/repository/src/repositories/repository.ts:126
↓ 31 callers
Method
reject
({request, response}: HandlerContext, error)
packages/rest/src/providers/reject.provider.ts:26
↓ 31 callers
Function
resolve
( ctx: Context, injection: Readonly<Injection>, session: ResolutionSession, )
examples/context/src/custom-inject-resolve.ts:21
↓ 30 callers
Method
getClassMetadata
* Get the metadata associated with the given key for a given class * @param key - Metadata key * @param target - Class that contains the metadat
packages/metadata/src/inspector.ts:59
↓ 30 callers
Function
getFilterSchemaFor
( modelCtor: typeof Model, options?: FilterSchemaOptions, )
packages/openapi-v3/src/filter-schema.ts:26
↓ 30 callers
Method
getResolutionContext
* Locate and validate the resolution context * @param ctx - Current context * @param options - Resolution options
packages/context/src/binding.ts:594
↓ 30 callers
Method
handler
(name: 'rest')
packages/booter-lb3app/src/lb3app.booter.ts:161
↓ 30 callers
Function
service
( serviceInterface?: ServiceInterface, metadata?: InjectionMetadata, )
packages/core/src/service.ts:71
↓ 30 callers
Method
value
* @returns The value to inject to dependents. * This method can return a promise too, in which case the IoC framework * will resolve this promis
packages/context/src/provider.ts:36
↓ 29 callers
Function
buildResponsesFromMetadata
( metadata: ResponseDecoratorMetadata, existingOperation?: OperationObject, )
packages/openapi-v3/src/build-responses-from-metadata.ts:140
↓ 29 callers
Function
expectMapping
(schema, expectedJSType, options)
packages/cli/test/unit/openapi/schema-helper.unit.js:9
↓ 29 callers
Method
getMetadata
* lookup metadata from a target object and its prototype chain
packages/metadata/src/reflect.ts:44
↓ 29 callers
Method
inspect
(value: any, obj: any)
packages/testlab/should-as-function.d.ts:213
↓ 28 callers
Method
False
()
packages/testlab/should-as-function.d.ts:165
↓ 28 callers
Function
expectValidJsonSchema
(schema: JsonSchema)
packages/repository-json-schema/src/__tests__/helpers/expect-valid-json-schema.ts:11
↓ 28 callers
Method
instanceof
(constructor: Function, description?: string)
packages/testlab/should-as-function.d.ts:82
↓ 28 callers
Function
instantiateClass
( ctor: Constructor<T>, ctx: Context, session?: ResolutionSession, // eslint-disable-next-line @typesc
packages/context/src/resolver.ts:47
↓ 28 callers
Function
lifeCycleObserver
(group = '', ...specs: BindingSpec[])
packages/core/src/lifecycle.ts:80
↓ 28 callers
Function
put
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:43
↓ 28 callers
Method
withOperationReturningString
* Define a new operation that returns a string response. * * @param verb - The HTTP verb. * @param path - The path relative to basePath. *
packages/openapi-spec-builder/src/openapi-spec-builder.ts:130
↓ 27 callers
Method
automigrate
(models: string | string[])
packages/repository/src/__tests__/unit/mixins/repository.mixin.unit.ts:232
↓ 27 callers
Function
getWhereSchemaFor
(modelCtor: typeof Model)
packages/openapi-v3/src/filter-schema.ts:48
↓ 27 callers
Function
resolveSchema
( fn?: Function, schema: SchemaObject = {}, )
packages/openapi-v3/src/generate-schema.ts:17
↓ 27 callers
Method
toInjectable
* Bind to a class optionally decorated with `@injectable`. Based on the * introspection of the class, it calls `toClass/toProvider/toDynamicValue`
packages/context/src/binding.ts:918
↓ 27 callers
Function
withCrudCtx
( fn: (context: CrudTestContext) => PromiseLike<unknown> | void, )
packages/repository-tests/src/helpers.repository-tests.ts:23
↓ 26 callers
Function
RepositoryMixin
( superClass: T, )
packages/repository/src/mixins/repository.mixin.ts:46
↓ 26 callers
Function
authorize
(spec: AuthorizationMetadata)
packages/authorization/src/decorators/authorize.ts:90
↓ 26 callers
Function
expectFooValue
(context: Context, val: number)
packages/context/src/__tests__/unit/context.unit.ts:607
↓ 26 callers
Method
getAllPropertyMetadata
* Get the metadata associated with the given key for all properties of the * target class or prototype * @param key - Metadata key * @param t
packages/metadata/src/inspector.ts:131
↓ 26 callers
Method
run
()
benchmark/src/benchmark.ts:55
↓ 26 callers
Method
toObject
* Convert to a plain object as DTO * * If `ignoreUnknownProperty` is set to false, convert all properties in the * model instance, otherwise
packages/repository/src/model.ts:381
↓ 25 callers
Function
api
(spec: Partial<ControllerSpec>)
packages/openapi-v3/src/decorators/api.decorator.ts:29
↓ 25 callers
Function
asService
(serviceInterface: ServiceInterface)
packages/core/src/service.ts:204
↓ 25 callers
Function
extensionPoint
(name: string, ...specs: BindingSpec[])
packages/core/src/extension-point.ts:46
↓ 25 callers
Function
givenTodoListInstance
( todoListRepo: TodoListRepository, data?: Partial<TodoList>, )
examples/todo-list/src/__tests__/helpers.ts:127
↓ 25 callers
Function
invokeMethodWithInterceptors
( context: Context, target: object, methodName: string, args: InvocationArgs, options: InvocationOpt
packages/context/src/interceptor.ts:326
↓ 25 callers
Method
isBound
* Check if a key is bound in the context or its ancestors * @param key - Binding key
packages/context/src/context.ts:470
↓ 25 callers
Method
withParameter
* Describe one more parameters accepted by the operation. * Note that parameters are positional in OpenAPI Spec, therefore * the first call of `
packages/openapi-spec-builder/src/openapi-spec-builder.ts:192
↓ 24 callers
Function
extensions
( extensionPointName?: string, metadata?: InjectionMetadata, )
packages/core/src/extension-point.ts:76
↓ 24 callers
Method
fields
* Describe what fields to be included/excluded * @param f - A field name to be included, an array of field names to be * included, or an Fields
packages/filter/src/query.ts:581
↓ 24 callers
Function
givenAServer
(app: Application)
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:862
↓ 24 callers
Function
givenAnApplication
()
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:847
↓ 23 callers
Method
createAll
* Create all records * @param dataObjects - An array of data to be created * @param options - Options for the operations * @returns A promise
packages/repository/src/repositories/repository.ts:89
↓ 23 callers
Method
dataSource
( dataSource: Class<D> | D, name?: string, )
packages/repository/src/mixins/repository.mixin.ts:335
↓ 23 callers
Function
getDeepProperty
( value: IN, path: string, )
packages/context/src/value-promise.ts:54
↓ 23 callers
Method
getValueOrPromise
* Get the value bound to the given key. * * This is an internal version that preserves the dual sync/async result * of `Binding#getValue()`.
packages/context/src/context.ts:893
↓ 23 callers
Function
parseOperationArgs
( request: Request, route: ResolvedRoute, requestBodyParser: RequestBodyParser = new RequestBodyParser()
packages/rest/src/parser.ts:35
↓ 23 callers
Method
withResponse
* Describe a response for a given HTTP status code. * @param status - HTTP status code or string "default" * @param responseSpec - Specification
packages/openapi-spec-builder/src/openapi-spec-builder.ts:168
↓ 22 callers
Method
greet
(name: string)
examples/webpack/src/dependency-injection.ts:48
↓ 22 callers
Method
keys
* Fetch all keys * @param modelClass - Model class * @param key - Key for the entry * @param options - Options for the operation * @return
packages/repository/src/connectors/kv.connector.ts:99
↓ 22 callers
Function
metaToJsonProperty
(meta: PropertyDefinition)
packages/repository-json-schema/src/build-schema.ts:257
↓ 22 callers
Function
mountComponent
(app: Application, component: Component)
packages/core/src/component.ts:112
↓ 22 callers
Function
reject
(err: unknown)
packages/context/src/value-promise.ts:240
← previous
next →
101–200 of 4,891, ranked by callers