GraphbackProxyService
ProxyService that can be used by any services that wish to extend Graphback functionality. Service works by proxying method requests to another service or datastore.
#
Type parameters▪ Type
#
Hierarchy- GraphbackProxyService
#
Implements- GraphbackCRUDService‹Type›
#
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor+ new GraphbackProxyService(service
: GraphbackCRUDService): GraphbackProxyService
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:13
Parameters:
Name | Type |
---|---|
service | GraphbackCRUDService |
Returns: GraphbackProxyService
#
PropertiesProtected
proxiedService#
• proxiedService: GraphbackCRUDService
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:13
#
Methods#
batchLoadData▸ batchLoadData(relationField
: string, id
: string | number, filter
: any, context
: any): any
Implementation of GraphbackCRUDService
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:51
Parameters:
Name | Type |
---|---|
relationField | string |
id | string | number |
filter | any |
context | any |
Returns: any
#
create▸ create(data
: Type, context
: any): Promise‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:19
Parameters:
Name | Type |
---|---|
data | Type |
context | any |
Returns: Promise‹Type›
#
delete▸ delete(data
: Type, context
: any): Promise‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:27
Parameters:
Name | Type |
---|---|
data | Type |
context | any |
Returns: Promise‹Type›
#
findBy▸ findBy(filter
: QueryFilter‹Type›, context
: any, page?
: GraphbackPage, orderBy?
: GraphbackOrderBy): Promise‹ResultList‹Type››
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:35
Parameters:
Name | Type |
---|---|
filter | QueryFilter‹Type› |
context | any |
page? | GraphbackPage |
orderBy? | GraphbackOrderBy |
Returns: Promise‹ResultList‹Type››
#
findOne▸ findOne(args
: any, context
: any): Promise‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:31
Parameters:
Name | Type |
---|---|
args | any |
context | any |
Returns: Promise‹Type›
#
subscribeToCreate▸ subscribeToCreate(filter?
: any, context?
: any): AsyncIterator‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:39
Parameters:
Name | Type |
---|---|
filter? | any |
context? | any |
Returns: AsyncIterator‹Type›
#
subscribeToDelete▸ subscribeToDelete(filter?
: any, context?
: any): AsyncIterator‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:47
Parameters:
Name | Type |
---|---|
filter? | any |
context? | any |
Returns: AsyncIterator‹Type›
#
subscribeToUpdate▸ subscribeToUpdate(filter?
: any, context?
: any): AsyncIterator‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:43
Parameters:
Name | Type |
---|---|
filter? | any |
context? | any |
Returns: AsyncIterator‹Type›
#
update▸ update(data
: Type, context
: any): Promise‹Type›
Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:23
Parameters:
Name | Type |
---|---|
data | Type |
context | any |
Returns: Promise‹Type›