MCPcopy Create free account

hub / github.com/loopbackio/loopback-next / functions

Functions4,891 in github.com/loopbackio/loopback-next

↓ 50 callersMethodtoString
()
packages/context/src/binding-key.ts:46
↓ 49 callersMethodgetApiSpec
* 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 callersFunctioninvokeMethod
( target: object, method: string, ctx: Context, nonInjectedArgs: InvocationArgs = [], options: Invoc
packages/context/src/invocation.ts:169
↓ 47 callersMethodpatch
* 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 callersMethodadd
(a: number, b: number)
packages/core/src/__tests__/unit/service.unit.ts:61
↓ 46 callersMethodon
(event: string | symbol, listener: (...args: any[]) => void)
packages/context/src/binding.ts:1062
↓ 46 callersMethodstatic
* 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 callersFunctiongetDummyUser
(overwrite = {})
extensions/sequelize/src/__tests__/integration/repository.integration.ts:1554
↓ 42 callersFunctiongetJsonSchema
( ctor: Function & {prototype: T}, options?: JsonSchemaOptions<T>, )
packages/repository-json-schema/src/build-schema.ts:117
↓ 42 callersMethodserialize
* 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 callersMethodtoString
()
packages/rest/src/router/base-route.ts:50
↓ 40 callersMethodadd
* Add a route to the router * @param route - A route entry
packages/rest/src/router/rest-router.ts:18
↓ 40 callersFunctionjsonToSchemaObject
( json: JsonSchema, visited: Map<JsonSchema, SchemaObject | SchemaRef> = new Map(), )
packages/openapi-v3/src/json-to-schema.ts:43
↓ 40 callersMethodkeys
* 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 callersMethodproperties
(names: string[])
packages/testlab/should-as-function.d.ts:104
↓ 40 callersMethoduse
(fn: (should: Internal, Assertion: Assertion) => void)
packages/testlab/should-as-function.d.ts:198
↓ 39 callersFunctionbelongsTo
( targetResolver: EntityResolver<T>, definition?: Partial<BelongsToDefinition>, propertyDefinition?: Par
packages/repository/src/relations/belongs-to/belongs-to.decorator.ts:20
↓ 39 callersFunctionextensionFor
( ...extensionPointNames: string[] )
packages/core/src/extension-point.ts:267
↓ 38 callersMethodupdateById
* 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 callersMethodload
* Load phase of the Booter. It should bind the artifacts in this phase.
packages/boot/src/types.ts:62
↓ 37 callersMethodnull
()
packages/testlab/should-as-function.d.ts:177
↓ 37 callersMethodsequence
* Configure a custom sequence class for handling incoming requests. * * @example * ```ts * class MySequence implements SequenceHandler {
packages/rest/src/rest.server.ts:911
↓ 37 callersMethodsubscribe
* Add a context event observer to the context * @param observer - Context observer instance or function
packages/context/src/context.ts:405
↓ 37 callersMethodtoLowerCase
(@param.path.string('text') text: string)
packages/rest/src/__tests__/acceptance/caching-interceptor/caching-interceptor.acceptance.ts:68
↓ 36 callersMethodString
()
packages/testlab/should-as-function.d.ts:59
↓ 36 callersMethodcomponent
(component: Class<unknown>, name?: string)
packages/repository/src/mixins/repository.mixin.ts:340
↓ 36 callersFunctioncreateParamShortcut
( source: ParameterLocation, options: ParamShortcutOptions, )
packages/openapi-v3/src/decorators/parameter.decorator.ts:498
↓ 36 callersFunctiondel
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:67
↓ 36 callersMethodskip
* Alias to `offset` * @param skip
packages/filter/src/query.ts:572
↓ 36 callersMethodwithOperation
* 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 callersFunctionBootMixin
(superClass: T)
packages/boot/src/mixins/boot.mixin.ts:46
↓ 35 callersMethodempty
()
packages/testlab/should-as-function.d.ts:51
↓ 35 callersFunctionfilter
()
packages/context/src/__tests__/unit/binding-filter.unit.ts:172
↓ 35 callersFunctionreadSourceFile
(relativePath)
packages/cli/test/fixtures/relation/index.js:296
↓ 35 callersMethodunbind
* 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 callersMethoddefineMetadata
* define metadata for a target class or it's property/method
packages/metadata/src/reflect.ts:27
↓ 34 callersFunctiononce
(emitter: EventEmitter, event: string | symbol)
extensions/health/src/observers/health.observer.ts:86
↓ 34 callersMethodroute
( routeOrVerb: RouteEntry | string, path?: string, spec?: OperationObject, controllerCtorOrHan
packages/rest/src/rest.server.ts:686
↓ 34 callersFunctionwhenIMakeRequestTo
(serverOrApp: HttpServerLike)
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:873
↓ 33 callersMethodend
()
packages/cli/generators/example/index.js:170
↓ 33 callersFunctionhasMany
( targetResolver: EntityResolver<T>, definition?: Partial<HasManyDefinition>, )
packages/repository/src/relations/has-many/has-many.decorator.ts:18
↓ 33 callersMethodupdateAll
* 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 callersFunctioncreateProduct
(properties: Partial<Product>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/relations-helpers-fixtures.ts:159
↓ 32 callersMethoddeleteById
* 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 callersMethodreplaceById
* 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 callersMethodtoUpperCase
(@param.path.string('text') text: string)
packages/rest/src/__tests__/acceptance/caching-interceptor/global-caching-interceptor.acceptance.ts:118
↓ 31 callersMethodclose
* 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 callersMethodcount
* 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 callersMethodreject
({request, response}: HandlerContext, error)
packages/rest/src/providers/reject.provider.ts:26
↓ 31 callersFunctionresolve
( ctx: Context, injection: Readonly<Injection>, session: ResolutionSession, )
examples/context/src/custom-inject-resolve.ts:21
↓ 30 callersMethodgetClassMetadata
* 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 callersFunctiongetFilterSchemaFor
( modelCtor: typeof Model, options?: FilterSchemaOptions, )
packages/openapi-v3/src/filter-schema.ts:26
↓ 30 callersMethodgetResolutionContext
* Locate and validate the resolution context * @param ctx - Current context * @param options - Resolution options
packages/context/src/binding.ts:594
↓ 30 callersMethodhandler
(name: 'rest')
packages/booter-lb3app/src/lb3app.booter.ts:161
↓ 30 callersFunctionservice
( serviceInterface?: ServiceInterface, metadata?: InjectionMetadata, )
packages/core/src/service.ts:71
↓ 30 callersMethodvalue
* @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 callersFunctionbuildResponsesFromMetadata
( metadata: ResponseDecoratorMetadata, existingOperation?: OperationObject, )
packages/openapi-v3/src/build-responses-from-metadata.ts:140
↓ 29 callersFunctionexpectMapping
(schema, expectedJSType, options)
packages/cli/test/unit/openapi/schema-helper.unit.js:9
↓ 29 callersMethodgetMetadata
* lookup metadata from a target object and its prototype chain
packages/metadata/src/reflect.ts:44
↓ 29 callersMethodinspect
(value: any, obj: any)
packages/testlab/should-as-function.d.ts:213
↓ 28 callersMethodFalse
()
packages/testlab/should-as-function.d.ts:165
↓ 28 callersFunctionexpectValidJsonSchema
(schema: JsonSchema)
packages/repository-json-schema/src/__tests__/helpers/expect-valid-json-schema.ts:11
↓ 28 callersMethodinstanceof
(constructor: Function, description?: string)
packages/testlab/should-as-function.d.ts:82
↓ 28 callersFunctioninstantiateClass
( ctor: Constructor<T>, ctx: Context, session?: ResolutionSession, // eslint-disable-next-line @typesc
packages/context/src/resolver.ts:47
↓ 28 callersFunctionlifeCycleObserver
(group = '', ...specs: BindingSpec[])
packages/core/src/lifecycle.ts:80
↓ 28 callersFunctionput
(path: string, spec?: OperationObject)
packages/openapi-v3/src/decorators/operation.decorator.ts:43
↓ 28 callersMethodwithOperationReturningString
* 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 callersMethodautomigrate
(models: string | string[])
packages/repository/src/__tests__/unit/mixins/repository.mixin.unit.ts:232
↓ 27 callersFunctiongetWhereSchemaFor
(modelCtor: typeof Model)
packages/openapi-v3/src/filter-schema.ts:48
↓ 27 callersFunctionresolveSchema
( fn?: Function, schema: SchemaObject = {}, )
packages/openapi-v3/src/generate-schema.ts:17
↓ 27 callersMethodtoInjectable
* 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 callersFunctionwithCrudCtx
( fn: (context: CrudTestContext) => PromiseLike<unknown> | void, )
packages/repository-tests/src/helpers.repository-tests.ts:23
↓ 26 callersFunctionRepositoryMixin
( superClass: T, )
packages/repository/src/mixins/repository.mixin.ts:46
↓ 26 callersFunctionauthorize
(spec: AuthorizationMetadata)
packages/authorization/src/decorators/authorize.ts:90
↓ 26 callersFunctionexpectFooValue
(context: Context, val: number)
packages/context/src/__tests__/unit/context.unit.ts:607
↓ 26 callersMethodgetAllPropertyMetadata
* 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 callersMethodrun
()
benchmark/src/benchmark.ts:55
↓ 26 callersMethodtoObject
* 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 callersFunctionapi
(spec: Partial<ControllerSpec>)
packages/openapi-v3/src/decorators/api.decorator.ts:29
↓ 25 callersFunctionasService
(serviceInterface: ServiceInterface)
packages/core/src/service.ts:204
↓ 25 callersFunctionextensionPoint
(name: string, ...specs: BindingSpec[])
packages/core/src/extension-point.ts:46
↓ 25 callersFunctiongivenTodoListInstance
( todoListRepo: TodoListRepository, data?: Partial<TodoList>, )
examples/todo-list/src/__tests__/helpers.ts:127
↓ 25 callersFunctioninvokeMethodWithInterceptors
( context: Context, target: object, methodName: string, args: InvocationArgs, options: InvocationOpt
packages/context/src/interceptor.ts:326
↓ 25 callersMethodisBound
* Check if a key is bound in the context or its ancestors * @param key - Binding key
packages/context/src/context.ts:470
↓ 25 callersMethodwithParameter
* 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 callersFunctionextensions
( extensionPointName?: string, metadata?: InjectionMetadata, )
packages/core/src/extension-point.ts:76
↓ 24 callersMethodfields
* 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 callersFunctiongivenAServer
(app: Application)
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:862
↓ 24 callersFunctiongivenAnApplication
()
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:847
↓ 23 callersMethodcreateAll
* 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 callersMethoddataSource
( dataSource: Class<D> | D, name?: string, )
packages/repository/src/mixins/repository.mixin.ts:335
↓ 23 callersFunctiongetDeepProperty
( value: IN, path: string, )
packages/context/src/value-promise.ts:54
↓ 23 callersMethodgetValueOrPromise
* 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 callersFunctionparseOperationArgs
( request: Request, route: ResolvedRoute, requestBodyParser: RequestBodyParser = new RequestBodyParser()
packages/rest/src/parser.ts:35
↓ 23 callersMethodwithResponse
* 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 callersMethodgreet
(name: string)
examples/webpack/src/dependency-injection.ts:48
↓ 22 callersMethodkeys
* 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 callersFunctionmetaToJsonProperty
(meta: PropertyDefinition)
packages/repository-json-schema/src/build-schema.ts:257
↓ 22 callersFunctionmountComponent
(app: Application, component: Component)
packages/core/src/component.ts:112
↓ 22 callersFunctionreject
(err: unknown)
packages/context/src/value-promise.ts:240
← previousnext →101–200 of 4,891, ranked by callers