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
↓ 10 callers
Function
resolveHasOneMetadata
( relationMeta: HasOneDefinition, )
packages/repository/src/relations/has-one/has-one.helpers.ts:31
↓ 10 callers
Function
resolveType
( fn: TypeResolver<T> | Class<T> | T, )
packages/repository/src/type-resolver.ts:98
↓ 10 callers
Function
verifyValidationRejectsInputWithError
( expectedMessage: string, expectedCode: string, expectedDetails: RestHttpErrors.ValidationErrorDetails[
packages/rest/src/__tests__/unit/request-body.validator.test.ts:374
↓ 10 callers
Function
writeResultToResponse
( // not needed and responsibility should be in the sequence.send response: Response, // result returned
packages/rest/src/writer.ts:16
↓ 9 callers
Method
_debug
* Wrap the debug statement so that it always print out the context name * as the prefix * @param args - Arguments for the debug
packages/context/src/context-subscription.ts:115
↓ 9 callers
Method
add
* Add a binding to the context. If a locked binding already exists with the * same key, an error will be thrown. * @param binding - The configur
packages/context/src/context.ts:231
↓ 9 callers
Method
addSetting
* Add a setting * @param name - Setting name * @param value - Setting value
packages/repository/src/model.ts:176
↓ 9 callers
Method
booters
* Register booters * @param booterClasses - A list of booter classes
packages/boot/src/types.ts:133
↓ 9 callers
Function
createProxyWithInterceptors
( target: T, context?: Context, session?: ResolutionSession, source?: InvocationSource, )
packages/context/src/interception-proxy.ts:116
↓ 9 callers
Function
describeInjectedProperties
( target: Object, )
packages/context/src/inject.ts:707
↓ 9 callers
Method
getDesignTypeForMethod
* Get TypeScript design time type for a method. * @param target - Class or prototype * @param methodName - Method name * @returns Design time
packages/metadata/src/inspector.ts:233
↓ 9 callers
Method
getId
* Get the identity value. If the identity is a composite key, returns * an object.
packages/repository/src/model.ts:467
↓ 9 callers
Function
getListeners
()
packages/core/src/__tests__/unit/application.unit.ts:438
↓ 9 callers
Function
getModelTemplateOptions
(templateData)
packages/cli/test/unit/import-lb3-model/migrate-model.test.js:497
↓ 9 callers
Function
givenInterceptorChain
(...interceptors: GenericInterceptor[])
packages/context/src/__tests__/unit/interceptor-chain.unit.ts:236
↓ 9 callers
Function
givenOperationWithRequestBody
(requestBody?: RequestBodyObject)
packages/rest/src/__tests__/unit/parser.unit.ts:446
↓ 9 callers
Function
givenRequest
(options?: ShotRequestOptions)
packages/rest/src/__tests__/unit/body-parser.unit.ts:384
↓ 9 callers
Function
givenRunningAppWithClient
( restOptions?: RestServerConfig, setupFn: (restApp: RestApplication) => void = () => {}, )
packages/rest/src/__tests__/integration/request-context.integration.ts:155
↓ 9 callers
Method
gt
* Add a `>` condition * @param key - Property name * @param val - Property value
packages/filter/src/query.ts:366
↓ 9 callers
Function
jsonOrBooleanToJSON
(jsonOrBool: boolean | JsonSchema)
packages/openapi-v3/src/json-to-schema.ts:159
↓ 9 callers
Method
lifeCycleObserver
* Register a life cycle observer class * @param ctor - A class implements LifeCycleObserver * @param nameOrOptions - Optional name or options fo
packages/core/src/application.ts:503
↓ 9 callers
Method
link
* Creates a new many-to-many association to an existing target model instance * @param targetModelId - The target model ID to link * @param opti
packages/repository/src/relations/has-many/has-many-through.repository.ts:112
↓ 9 callers
Function
log
(level?: number)
examples/log-extension/src/decorators/log.decorator.ts:21
↓ 9 callers
Method
on
(_eventName: string | symbol, _cb: (...args: unknown[]) => void)
extensions/socketio/src/__tests__/fixtures/dummy-socket.ts:9
↓ 9 callers
Function
printSpecObject
* Print an OpenAPI spec object as JavaScript object literal. The original value * is used if `$ref` is resolved. * @param {*} specObject - An OpenAP
packages/cli/generators/openapi/utils.js:224
↓ 9 callers
Method
registerController
* Register a controller as the route * @param spec * @param controllerCtor * @param controllerFactory
packages/rest/src/router/routing-table.ts:43
↓ 9 callers
Function
registerGreeters
(extensionPointName: string)
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:326
↓ 9 callers
Function
resolveList
( list: T[], resolver: (val: T, index: number, values: T[]) => ValueOrPromise<V>, )
packages/context/src/value-promise.ts:157
↓ 9 callers
Function
resolveMap
( map: MapObject<T>, resolver: (val: T, key: string, values: MapObject<T>) => ValueOrPromise<V>, )
packages/context/src/value-promise.ts:95
↓ 9 callers
Function
runMain
* Run a function if the module is the main entry for `node` process. * * @param currentModule - Current module. It's used to determine if the module
bin/script-util.js:129
↓ 9 callers
Function
setupBindings
(scope: BindingScope)
packages/context/src/__tests__/unit/context.unit.ts:743
↓ 9 callers
Function
stubExpressContext
( requestOptions: ShotRequestOptions = {url: '/'}, )
packages/testlab/src/shot.ts:95
↓ 9 callers
Function
testInvalidDataError
( input: string | object, extraErrorProps?: Props, )
packages/rest/src/__tests__/unit/coercion/paramObject.unit.ts:78
↓ 9 callers
Method
toJSON
* Convert to a plain JSON object
packages/context/src/binding.ts:977
↓ 9 callers
Function
whenIMakeRequestTo
(restServer: RestServer)
packages/authentication/src/__tests__/acceptance/basic-auth-extension.middleware.acceptance.ts:268
↓ 9 callers
Function
whenIMakeRequestTo
(restServer: RestServer)
packages/authentication/src/__tests__/acceptance/basic-auth-extension.acceptance.ts:268
↓ 9 callers
Method
withComponents
* Define a new ComponentsObject. * * @param spec - Specification of the components.
packages/openapi-spec-builder/src/openapi-spec-builder.ts:146
↓ 9 callers
Method
withSchema
* Define a component schema. * * @param name - The name of the schema * @param schema - Specification of the schema *
packages/openapi-spec-builder/src/openapi-spec-builder.ts:276
↓ 9 callers
Method
writeTextFile
* Creates a new file and writes the given data as a UTF-8-encoded text. * * @param dest - Destination filename, optionally including a relative
packages/testlab/src/test-sandbox.ts:177
↓ 8 callers
Function
addExtension
( context: Context, extensionPointName: string, extensionClass: Constructor<unknown>, options?: Bindin
packages/core/src/extension-point.ts:301
↓ 8 callers
Method
addRelation
* Define a new relation. * @param definition - The definition of the new relation.
packages/repository/src/model.ts:185
↓ 8 callers
Function
assertGreeterExtensions
(greeters: Greeter[])
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:356
↓ 8 callers
Method
buildKeyForConfig
* Build a binding key for the configuration of the given binding. * The format is `<key>:$config` * * @param key - Key of the target binding
packages/context/src/binding-key.ts:117
↓ 8 callers
Function
buildLookupMap
( list: InType[], keyName: StringKeyOf<InType>, reducer: (accumulator: OutType | undefined, current: InT
packages/repository/src/relations/relation.helpers.ts:291
↓ 8 callers
Method
buildSequelizeWhere
* Build Sequelize compatible where condition object * @param where loopback style `where` condition * @returns Sequelize compatible where option
extensions/sequelize/src/sequelize/sequelize.repository.base.ts:642
↓ 8 callers
Function
compareBindingsByTag
( phaseTagName = 'phase', orderOfPhases: (string | symbol)[] = [], )
packages/context/src/binding-sorter.ts:52
↓ 8 callers
Function
constrainWhere
( originalWhere: Where<T> | undefined, constraint: Where<T>, )
packages/repository/src/repositories/constraint-utils.ts:36
↓ 8 callers
Function
createHasManyThroughRepositoryFactory
( relationMetadata: HasManyDefinition, targetRepositoryGetter: | Getter<EntityCrudRepository<Target, T
packages/repository/src/relations/has-many/has-many-through.repository-factory.ts:52
↓ 8 callers
Function
createProduct
(properties: Partial<Product>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/mongo-related-helpers.unit.ts:142
↓ 8 callers
Method
deleteMetadata
( metadataKey: string, target: Object, propertyKey?: string, )
packages/metadata/src/reflect.ts:97
↓ 8 callers
Method
describeInjection
* Describe the injection for debugging purpose * @param injection - Injection object
packages/context/src/resolution-session.ts:136
↓ 8 callers
Function
emitAntWait
(eventName: string, args: unknown)
extensions/socketio/src/__tests__/acceptance/socketio.events.acceptance.ts:80
↓ 8 callers
Method
find
* Implementation of the endpoint `GET /`. * @param filter Filter
packages/rest-crud/src/crud-rest.controller.ts:79
↓ 8 callers
Method
findRoute
packages/rest/src/providers/find-route.provider.ts:27
↓ 8 callers
Method
generate
* Generate a universally unique binding key. * * Please note the format of they generated key is not specified, you must * not rely on any sp
packages/context/src/binding-key.ts:131
↓ 8 callers
Method
generateToken
* Generate a refresh token, bind it with the given user profile + access * token, then store them in backend.
extensions/authentication-jwt/src/types.ts:27
↓ 8 callers
Function
getErrorText
(packageName, field)
bin/check-package-metadata.js:104
↓ 8 callers
Method
getGlobalInterceptorBindingKeys
* Discover all binding keys for global interceptors (tagged by * ContextTags.GLOBAL_INTERCEPTOR)
packages/context/src/interceptor.ts:56
↓ 8 callers
Method
getIdProperties
* Get the names of identity properties (primary keys).
packages/repository/src/model.ts:444
↓ 8 callers
Method
getOwnerContext
* Get the owning context for a binding or its key * @param keyOrBinding - Binding object or key
packages/context/src/context.ts:482
↓ 8 callers
Function
givenOperationWithRequestBody
(requestBody?: RequestBodyObject)
packages/rest/src/__tests__/unit/body-parser.unit.ts:376
↓ 8 callers
Function
givenRequest
(options?: ShotRequestOptions)
packages/rest/src/__tests__/unit/router/routing-table.unit.ts:254
↓ 8 callers
Function
givenRoutingTable
()
packages/rest/src/__tests__/unit/router/routing-table.unit.ts:258
↓ 8 callers
Function
givenTodo
(todo?: Partial<Todo>)
examples/rest-crud/src/__tests__/helpers.ts:13
↓ 8 callers
Function
httpGetAsync
( urlString: string, agent?: http.Agent, )
packages/testlab/src/request.ts:14
↓ 8 callers
Method
isVisibleTo
* Check if this context is visible (same or ancestor) to the given one * @param ctx - Another context object
packages/context/src/context.ts:566
↓ 8 callers
Method
lt
* Add a `<` condition * @param key - Property name * @param val - Property value
packages/filter/src/query.ts:388
↓ 8 callers
Function
mapSchemaType
* * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#data-types * * @param {object} schema
packages/cli/generators/openapi/schema-helper.js:324
↓ 8 callers
Function
methodDecorator
* Define `@methodDecorator(spec)` * @param spec
packages/metadata/src/__tests__/unit/decorator-factory.unit.ts:436
↓ 8 callers
Method
mountExpressRouter
* Mount an Express router to expose additional REST endpoints handled * via legacy Express-based stack. * * @param basePath - Path where to m
packages/rest/src/rest.server.ts:1027
↓ 8 callers
Function
propertyDecorator
* Define `@propertyDecorator(spec)` * @param spec
packages/metadata/src/__tests__/unit/decorator-factory.unit.ts:340
↓ 8 callers
Function
reject
({response}, error)
packages/rest/src/__tests__/acceptance/sequence/sequence.acceptance.ts:114
↓ 8 callers
Method
rejected
()
packages/testlab/should-as-function.d.ts:132
↓ 8 callers
Function
resolveHasManyMetadata
( relationMeta: HasManyDefinition, )
packages/repository/src/relations/has-many/has-many.helpers.ts:30
↓ 8 callers
Method
setState
* Transition the application to a new state and emit an event * @param state - The new state
packages/core/src/application.ts:289
↓ 8 callers
Function
testValidateName
(testName, input, expected)
packages/cli/test/unit/utils.unit.js:73
↓ 8 callers
Method
throws
(block: any, error?: any, message?: string)
packages/testlab/should-as-function.d.ts:210
↓ 8 callers
Function
validateApiPath
(path = '/')
packages/rest/src/router/openapi-path.ts:22
↓ 8 callers
Function
validateRequestBody
( body: RequestBody, requestBodySpec?: RequestBodyObject, globalSchemas: SchemasObject = {}, options:
packages/rest/src/validation/request-body.validator.ts:44
↓ 7 callers
Method
Number
()
packages/testlab/should-as-function.d.ts:61
↓ 7 callers
Function
assertEvents
(events: BindingEvent[], operation: string)
packages/context/src/__tests__/unit/binding.unit.ts:782
↓ 7 callers
Method
bindController
(interceptor?: InterceptorOrKey)
packages/express/src/__tests__/acceptance/test-helpers.ts:64
↓ 7 callers
Method
buildWhereForId
* Build the where object for the given id * @param id - The id value
packages/repository/src/model.ts:500
↓ 7 callers
Method
calledWithExactly
(...arguments: any[])
packages/testlab/should-as-function.d.ts:156
↓ 7 callers
Method
clear
* Clear the cache
examples/greeting-app/src/caching-service.ts:75
↓ 7 callers
Method
connect
()
packages/repository/src/connectors/connector.ts:62
↓ 7 callers
Function
createCategoryProductLink
(properties: Partial<CategoryProductLink>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/resolve-has-many-through-metadata.unit.ts:596
↓ 7 callers
Function
createComponentApplicationBooterBinding
( componentApp: Application & Bootable, filter?: BindingFilter, )
packages/boot/src/booters/component-application.booter.ts:116
↓ 7 callers
Function
createCustomerAddress
( customerId: MixedIdType, addressData: DataObject<Address>, )
packages/repository-tests/src/crud/relations/acceptance/has-one.relation.acceptance.ts:240
↓ 7 callers
Function
createCustomerPaymentMethod
( customerId: MixedIdType, paymentMethodData: DataObject<PaymentMethod>, polymorphicTypeName
packages/repository-tests/src/crud/relations/acceptance/has-one.relation.polymorphic.acceptance.ts:286
↓ 7 callers
Method
deepProperty
* Get a binding address for retrieving a deep property of the object * bound to the current binding key. * * @param propertyPath - A dot-sepa
packages/context/src/binding-key.ts:58
↓ 7 callers
Function
deleteMetadata
(target: object, propertyKey?: string)
packages/metadata/src/__tests__/unit/reflect.unit.ts:473
↓ 7 callers
Function
findByForeignKeys
( targetRepository: EntityCrudRepository<Target, unknown, TargetRelations>, fkName: ForeignKey, fkValues
packages/repository/src/relations/relation.helpers.ts:30
↓ 7 callers
Method
findRoute
(request: Request)
packages/rest/src/http-handler.ts:95
↓ 7 callers
Function
flattenTargetsOfOneToOneRelation
( sourceIds: unknown[], targetEntities: Target[], targetKey: StringKeyOf<Target>, )
packages/repository/src/relations/relation.helpers.ts:211
↓ 7 callers
Function
getFieldsJsonSchemaFor
( modelCtor: typeof Model, options: FilterSchemaOptions = {}, )
packages/repository-json-schema/src/filter-json-schema.ts:205
↓ 7 callers
Method
getMetadataKey
(metadataKey: string)
packages/metadata/src/reflect.ts:19
↓ 7 callers
Method
getModelMetadata
* A utility function to simplify retrieving metadata from a target model and * its properties. * @param target - The class from which to retriev
packages/repository/src/decorators/metadata.ts:24
↓ 7 callers
Method
getName
()
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:260
↓ 7 callers
Method
getScopedContext
* Get the context matching the scope * @param scope - Binding scope
packages/context/src/context.ts:511
← previous
next →
401–500 of 4,891, ranked by callers