Class: OrgLookupService
Org lookup service
Extends
Implements
Constructors
new OrgLookupService()
new OrgLookupService(
repo
,ownerLookupService
):OrgLookupService
Constructor
Parameters
Parameter | Type | Description |
---|---|---|
repo | Repository <OrgEntityInterface > | instance of the org repo |
ownerLookupService | OrgOwnerLookupServiceInterface | - |
Returns
Overrides
Defined in
.tmp/repos/rockets/packages/nestjs-org/src/services/org-lookup.service.ts:29 (opens in a new tab)
Properties
Property | Modifier | Type |
---|---|---|
ownerLookupService | readonly | OrgOwnerLookupServiceInterface |
Accessors
metadata
get
protected
metadata():EntityMetadata
Internal
Returns
EntityMetadata
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:14
Methods
byId()
byId(
id
,queryOptions
?):Promise
<null
|OrgEntityInterface
>
Get entity for the given id.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | the id |
queryOptions ? | QueryOptionsInterface | query options |
Returns
Promise
<null
| OrgEntityInterface
>
Implementation of
OrgLookupServiceInterface
.byId
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/lookup.service.d.ts:7
find()
find(
options
,queryOptions
?):Promise
<Promise
<OrgEntityInterface
[]>>
Find wrapper.
Parameters
Parameter | Type | Description |
---|---|---|
options | FindManyOptions <OrgEntityInterface > | Find many options |
queryOptions ? | QueryOptionsInterface | Query options |
Returns
Promise
<Promise
<OrgEntityInterface
[]>>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:10
findOne()
findOne(
options
,queryOptions
?):Promise
<null
|OrgEntityInterface
>
Find One wrapper.
Parameters
Parameter | Type | Description |
---|---|---|
options | FindOneOptions <OrgEntityInterface > | Find one options |
queryOptions ? | QueryOptionsInterface | Query options |
Returns
Promise
<null
| OrgEntityInterface
>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:11
getOwner()
getOwner(
org
,queryOptions
?):Promise
<null
|ReferenceIdInterface
<string
>>
Get owner for the given org.
Parameters
Parameter | Type | Description |
---|---|---|
org | OrgOwnerInterface | The org of which owner to retrieve. |
queryOptions ? | QueryOptionsInterface | - |
Returns
Promise
<null
| ReferenceIdInterface
<string
>>
Implementation of
OrgLookupServiceInterface
.getOwner
Defined in
.tmp/repos/rockets/packages/nestjs-org/src/services/org-lookup.service.ts:43 (opens in a new tab)
repository()
repository(
queryOptions
?):Repository
<OrgEntityInterface
>
Return the correct repository instance.
Parameters
Parameter | Type | Description |
---|---|---|
queryOptions ? | QueryOptionsInterface | Options |
Returns
Repository
<OrgEntityInterface
>
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