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
↓ 1,703 callers
Method
eql
(expected: any, description?: string)
packages/testlab/should-as-function.d.ts:72
↓ 1,044 callers
Method
equal
(actual: any, expected: any, message?: string)
packages/testlab/should-as-function.d.ts:204
↓ 941 callers
Method
get
* Get an entry by key * @param modelClass - Model class * @param key - Key for the entry * @param options - Options for the operation * @r
packages/repository/src/connectors/kv.connector.ts:44
↓ 929 callers
Method
bind
* A static method to create a binding so that we can do * `Binding.bind('foo').to('bar');` as `new Binding('foo').to('bar')` is not * easy to re
packages/context/src/binding.ts:1024
↓ 771 callers
Method
create
* Create a new record * @param dataObject - The data to be created * @param options - Options for the operations * @returns A promise of reco
packages/repository/src/repositories/repository.ts:81
↓ 719 callers
Function
describe
()
packages/rest/src/router/base-route.ts:38
↓ 591 callers
Function
inject
( bindingSelector: BindingSelector, metadata?: InjectionMetadata, resolve?: ResolverFunction, )
packages/context/src/inject.ts:128
↓ 544 callers
Function
property
(definition?: Partial<PropertyDefinition>)
packages/repository/src/decorators/model.decorator.ts:125
↓ 527 callers
Method
to
* Bind the key to a constant value. The value must be already available * at binding time, it is not allowed to pass a Promise instance. * *
packages/context/src/binding.ts:740
↓ 414 callers
Function
describe
(e: ResolutionElement)
packages/context/src/resolution-session.ts:298
↓ 381 callers
Method
deepEqual
(actual: any, expected: any, message?: string)
packages/testlab/should-as-function.d.ts:206
↓ 369 callers
Function
toJSON
(value: T)
packages/testlab/src/to-json.ts:52
↓ 329 callers
Function
beforeEach
* `beforeEach` is only for testing purposes in the controller, * Calling `syncSequelizeModel` ensures that corresponding table * exists before c
extensions/sequelize/src/__tests__/fixtures/controllers/test.controller.base.ts:16
↓ 325 callers
Method
true
()
packages/testlab/should-as-function.d.ts:53
↓ 311 callers
Function
model
(definition?: Partial<ModelDefinitionSyntax>)
packages/repository/src/decorators/model.decorator.ts:42
↓ 298 callers
Method
property
(name: string, description?: string)
packages/testlab/should-as-function.d.ts:102
↓ 278 callers
Method
resolve
* Resolve values for the matching bindings * @param session - Resolution session
packages/context/src/context-view.ts:196
↓ 273 callers
Function
context
()
packages/context/src/inject.ts:395
↓ 265 callers
Method
toClass
* Bind the key to an instance of the given class. * * @param ctor - The class constructor to call. Any constructor * arguments must be anno
packages/context/src/binding.ts:875
↓ 257 callers
Method
build
( application: ApplicationWithRepositories, modelClass: typeof Model & {prototype: Model}, config:
packages/model-api-builder/src/model-api-builder.ts:20
↓ 254 callers
Method
containEql
(obj: any)
packages/testlab/should-as-function.d.ts:115
↓ 252 callers
Method
start
* The method to be invoked during `start`
packages/core/src/lifecycle.ts:29
↓ 238 callers
Method
false
()
packages/testlab/should-as-function.d.ts:54
↓ 237 callers
Method
tag
* Tag the binding with names or name/value objects. A tag has a name and * an optional value. If not supplied, the tag name is used as the value.
packages/context/src/binding.ts:668
↓ 235 callers
Method
set
* Set an entry with key/value * @param modelClass - Model class * @param key - Key for the entry * @param value - Value for the entry * @p
packages/repository/src/connectors/kv.connector.ts:55
↓ 215 callers
Method
match
(other: {}, description?: string)
packages/testlab/should-as-function.d.ts:89
↓ 206 callers
Method
stop
* The method to be invoked during `stop`
packages/core/src/lifecycle.ts:33
↓ 200 callers
Method
log
(message: string)
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:207
↓ 188 callers
Function
get
(what)
packages/cli/lib/utils.js:51
↓ 188 callers
Function
getModelSchemaRef
( modelCtor: Function & {prototype: T}, options?: JsonSchemaOptions<T>, )
packages/openapi-v3/src/controller-spec.ts:564
↓ 186 callers
Function
injectable
(...specs: BindingSpec[])
packages/context/src/binding-decorator.ts:67
↓ 186 callers
Method
rejectedWith
(err: Function | string | RegExp, properties?: {})
packages/testlab/should-as-function.d.ts:133
↓ 183 callers
Method
find
* Find a matching route for the given http request * @param request - Http request * @returns The resolved route, if not found, `undefined` is r
packages/rest/src/router/rest-router.ts:25
↓ 182 callers
Method
getSync
( keyWithPath: BindingAddress<ValueType>, optionsOrSession?: ResolutionOptionsOrSession, )
packages/context/src/context.ts:777
↓ 179 callers
Method
find
* Find matching records * @param filter - Query filter * @param options - Options for the operations * @returns A promise of an array of reco
packages/repository/src/repositories/repository.ts:97
↓ 168 callers
Method
throw
(propereties?: {})
packages/testlab/should-as-function.d.ts:124
↓ 163 callers
Function
requestBody
(requestBodySpec?: Partial<RequestBodyObject>)
packages/openapi-v3/src/decorators/request-body.decorator.ts:80
↓ 162 callers
Function
get
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:19
↓ 155 callers
Method
exit
* Tell this generator to exit with the given reason * @param {string|Error} reason
packages/cli/lib/base-generator.js:360
↓ 154 callers
Method
containDeep
(obj: any)
packages/testlab/should-as-function.d.ts:116
↓ 152 callers
Method
undefined
()
packages/testlab/should-as-function.d.ts:178
↓ 143 callers
Function
getControllerSpec
(constructor: Function)
packages/openapi-v3/src/controller-spec.ts:524
↓ 140 callers
Method
findById
* Find 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:74
↓ 139 callers
Function
resolve
* Resolve the value or promise for a given injection * @param ctx - Context * @param injection - Descriptor of the injection * @param session - Opt
packages/context/src/resolver.ts:127
↓ 131 callers
Function
test
( paramSpec: ParameterObject, rawValue: string | undefined | object, expectedResult: T, opts?: TestOpt
packages/rest/src/__tests__/unit/coercion/utils.ts:109
↓ 119 callers
Function
createBindingFromClass
( cls: Constructor<T | Provider<T>> | DynamicValueProviderClass<T>, options: BindingFromClassOptions = {},
packages/context/src/binding-inspector.ts:266
↓ 112 callers
Method
boot
* Boot up the project
packages/boot/src/types.ts:128
↓ 112 callers
Function
post
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:31
↓ 111 callers
Method
shouldExit
* Check if the generator should exit
packages/cli/lib/base-generator.js:444
↓ 109 callers
Function
response
( statusCode: number, description: string, payload: MediaTypeObject, )
packages/rest-crud/src/crud-rest.controller.ts:323
↓ 106 callers
Method
coerce
* Coerce the value into this type * @param value - The value to be coerced * @param options - Options for coercion * @returns Coerced value o
packages/repository/src/types/type.ts:43
↓ 106 callers
Method
isInstance
* Test if the given value is an instance of this type * @param value - The value
packages/repository/src/types/type.ts:23
↓ 105 callers
Method
component
(component: Constructor<{}>, name?: string)
packages/service-proxy/src/mixins/service.mixin.ts:150
↓ 100 callers
Method
isCoercible
* Check if the given value can be coerced into this type * @param value - The value to to be coerced * @returns A flag to indicate if the value
packages/repository/src/types/type.ts:35
↓ 100 callers
Method
toDynamicValue
* Bind the key to a computed (dynamic) value. * * @param factoryFn - The factory function creating the value. * Both sync and async functio
packages/context/src/binding.ts:794
↓ 98 callers
Method
configure
* Configure phase of the Booter. It should set options / defaults in this phase.
packages/boot/src/types.ts:54
↓ 97 callers
Method
length
(n: number, description?: string)
packages/testlab/should-as-function.d.ts:101
↓ 94 callers
Method
addProperty
* Add a property * @param name - Property definition or name (string) * @param definitionOrType - Definition or property type
packages/repository/src/model.ts:150
↓ 93 callers
Function
expectFileToMatchSnapshot
(filePath)
packages/cli/test/snapshots.js:17
↓ 93 callers
Method
reset
* Resets the TestSandbox. (Remove all files in it).
packages/testlab/src/test-sandbox.ts:96
↓ 88 callers
Method
deleteAll
* Delete all entries * @param modelClass - Model class * @param options - Options for the operation * @returns A promise of the number of ent
packages/repository/src/connectors/kv.connector.ts:35
↓ 88 callers
Method
error
()
examples/log-extension/src/__tests__/acceptance/log.extension.acceptance.ts:282
↓ 81 callers
Method
Function
()
packages/testlab/should-as-function.d.ts:63
↓ 80 callers
Method
getOwnMetadata
* get own metadata for a target object or it's property/method
packages/metadata/src/reflect.ts:55
↓ 77 callers
Function
anOperationSpec
()
packages/openapi-spec-builder/src/openapi-spec-builder.ts:36
↓ 77 callers
Method
inScope
* Set the binding scope * @param scope - Binding scope
packages/context/src/binding.ts:696
↓ 76 callers
Method
instanceOf
(constructor: Function, description?: string)
packages/testlab/should-as-function.d.ts:170
↓ 74 callers
Method
apply
* Apply one or more template functions to set up the binding with scope, * tags, and other attributes as a group. * * @example * ```ts
packages/context/src/binding.ts:967
↓ 73 callers
Method
toJSON
* Serialize into a plain JSON object
packages/repository/src/model.ts:341
↓ 71 callers
Method
controller
* Register a controller class with this server. * * @param controllerCtor - The controller class * (constructor function). * @returns The
packages/rest/src/rest.server.ts:611
↓ 70 callers
Function
givenHttpServerConfig
( customConfig?: T, )
packages/testlab/src/http-server-config.ts:52
↓ 68 callers
Method
copyFile
* Copies a file from src to the TestSandbox. If copying a `.js` file which * has an accompanying `.js.map` file in the src file location, the dest
packages/testlab/src/test-sandbox.ts:137
↓ 68 callers
Method
parse
* Parse the request body * @param request - http request
packages/rest/src/body-parsers/types.ts:49
↓ 67 callers
Function
config
( propertyPath?: string | ConfigInjectionMetadata, metadata?: ConfigInjectionMetadata, )
packages/context/src/inject-config.ts:64
↓ 67 callers
Function
createClientForHandler
( handler: (req: http.IncomingMessage, res: http.ServerResponse) => void, )
packages/testlab/src/client.ts:22
↓ 65 callers
Method
calledWith
(...arguments: any[])
packages/testlab/should-as-function.d.ts:155
↓ 65 callers
Function
createRestAppClient
(app: RestApplicationLike)
packages/testlab/src/client.ts:35
↓ 65 callers
Method
exactly
(expected: any, description?: string)
packages/testlab/should-as-function.d.ts:169
↓ 64 callers
Method
keys
(...allKeys: string[])
packages/testlab/should-as-function.d.ts:118
↓ 63 callers
Method
createDecorator
* Create a class decorator function * @param key - Metadata key * @param spec - Metadata object from the decorator function * @param options
packages/metadata/src/decorator-factory.ts:429
↓ 63 callers
Function
filterByTag
(tagPattern: BindingTag | RegExp)
packages/context/src/binding-filter.ts:165
↓ 62 callers
Function
authenticate
( ...strategies: (string | AuthenticationMetadata)[] )
packages/authentication/src/decorators/authenticate.decorator.ts:30
↓ 61 callers
Method
bind
* Create a binding with the given key in the context. If a locked binding * already exists with the same key, an error will be thrown. * * @p
packages/context/src/context.ts:218
↓ 61 callers
Method
getBinding
( key: BindingAddress<ValueType>, options?: {optional?: boolean}, )
packages/context/src/context.ts:822
↓ 61 callers
Function
patch
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:55
↓ 60 callers
Function
repository
( modelOrRepo: string | Class<Repository<Model>> | typeof Entity, dataSource?: string | juggler.DataSource
packages/repository/src/decorators/repository.decorator.ts:138
↓ 59 callers
Function
anOpenApiSpec
()
packages/openapi-spec-builder/src/openapi-spec-builder.ts:29
↓ 59 callers
Method
delete
* Delete an entry by key * @param modelClass - Model class * @param key - Key for the entry * @param options - Options for the operation *
packages/repository/src/connectors/kv.connector.ts:23
↓ 58 callers
Method
toProvider
* Bind the key to a value computed by a Provider. * * * @example * * ```ts * export class DateProvider implements Provider<Date> { *
packages/context/src/binding.ts:847
↓ 57 callers
Method
prompt
* Override the base prompt to skip prompts with default answers * @param questions - One or more questions
packages/cli/lib/base-generator.js:297
↓ 57 callers
Method
where
* Declare a where clause * @param w - Where object
packages/filter/src/query.ts:668
↓ 56 callers
Function
givenAServer
( options: {rest: RestServerConfig} = {rest: {port: 0}}, )
packages/rest/src/__tests__/integration/rest.server.integration.ts:1431
↓ 56 callers
Function
intercept
(...interceptorOrKeys: InterceptorOrKey[])
packages/context/src/interceptor.ts:283
↓ 55 callers
Function
modelToJsonSchema
( ctor: Function & {prototype: T}, jsonSchemaOptions: JsonSchemaOptions<T> = {}, )
packages/repository-json-schema/src/build-schema.ts:434
↓ 55 callers
Method
query
()
packages/core/src/__tests__/unit/service.unit.ts:555
↓ 53 callers
Method
values
* Get values for the configuration with a property path * @param session - Resolution session
packages/context/src/inject-config.ts:234
↓ 51 callers
Method
findByTag
* Find bindings using the tag filter. If the filter matches one of the * binding tags, the binding is included. * * @param tagFilter - A filt
packages/context/src/context.ts:622
↓ 51 callers
Method
getServer
* Retrieve the singleton instance for a bound server. * * @typeParam T - Server type * @param ctor - The constructor that was used to make th
packages/core/src/application.ts:246
↓ 50 callers
Method
add
(args: CalculatorParameters)
examples/soap-calculator/src/services/calculator.service.ts:38
↓ 50 callers
Method
ok
(value: any, message?: string)
packages/testlab/should-as-function.d.ts:203
next →
1–100 of 4,891, ranked by callers