Class: UserLookupService
User lookup service
Extends
Implements
Constructors
new UserLookupService()
new UserLookupService(
repo):UserLookupService
Constructor
Parameters
| Parameter | Type | Description | 
|---|---|---|
| repo | Repository<UserEntityInterface> | instance of the user repo | 
Returns
Overrides
Defined in
.tmp/repos/rockets/packages/nestjs-user/src/services/user-lookup.service.ts:28 (opens in a new tab)
Accessors
metadata
getprotectedmetadata():EntityMetadata
Internal
Returns
EntityMetadata
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:14
Methods
byEmail()
byEmail(
queryOptions?):Promise<null|UserEntityInterface>
Get user for the given email.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| email | string | the email | 
| queryOptions? | QueryOptionsInterface | - | 
Returns
Promise<null | UserEntityInterface>
Implementation of
UserLookupServiceInterface.byEmail
Defined in
.tmp/repos/rockets/packages/nestjs-user/src/services/user-lookup.service.ts:40 (opens in a new tab)
byId()
byId(
id,queryOptions?):Promise<null|UserEntityInterface>
Get entity for the given id.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| id | string | the id | 
| queryOptions? | QueryOptionsInterface | query options | 
Returns
Promise<null | UserEntityInterface>
Implementation of
UserLookupServiceInterface.byId
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/lookup.service.d.ts:7
bySubject()
bySubject(
subject,queryOptions?):Promise<null|UserEntityInterface>
Get user for the given subject.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| subject | string | the subject | 
| queryOptions? | QueryOptionsInterface | - | 
Returns
Promise<null | UserEntityInterface>
Implementation of
UserLookupServiceInterface.bySubject
Defined in
.tmp/repos/rockets/packages/nestjs-user/src/services/user-lookup.service.ts:52 (opens in a new tab)
byUsername()
byUsername(
username,queryOptions?):Promise<null|UserEntityInterface>
Get user for the given username.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| username | string | the username | 
| queryOptions? | QueryOptionsInterface | - | 
Returns
Promise<null | UserEntityInterface>
Implementation of
UserLookupServiceInterface.byUsername
Defined in
.tmp/repos/rockets/packages/nestjs-user/src/services/user-lookup.service.ts:64 (opens in a new tab)
find()
find(
options,queryOptions?):Promise<Promise<UserEntityInterface[]>>
Find wrapper.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| options | FindManyOptions<UserEntityInterface> | Find many options | 
| queryOptions? | QueryOptionsInterface | Query options | 
Returns
Promise<Promise<UserEntityInterface[]>>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:10
findOne()
findOne(
options,queryOptions?):Promise<null|UserEntityInterface>
Find One wrapper.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| options | FindOneOptions<UserEntityInterface> | Find one options | 
| queryOptions? | QueryOptionsInterface | Query options | 
Returns
Promise<null | UserEntityInterface>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:11
repository()
repository(
queryOptions?):Repository<UserEntityInterface>
Return the correct repository instance.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| queryOptions? | QueryOptionsInterface | Options | 
Returns
Repository<UserEntityInterface>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:12
transaction()
transaction(
options?):TransactionProxy
Return a transaction instance.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| options? | SafeTransactionOptionsInterface | Options | 
Returns
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:13