Version: 0.15.x

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#

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new GraphbackProxyService(service: GraphbackCRUDService): GraphbackProxyService

Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:13

Parameters:

NameType
serviceGraphbackCRUDService

Returns: GraphbackProxyService

Properties#

Protected 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:

NameType
relationFieldstring
idstring | number
filterany
contextany

Returns: any


create#

create(data: Type, context: any): Promise‹Type›

Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:19

Parameters:

NameType
dataType
contextany

Returns: Promise‹Type›


delete#

delete(data: Type, context: any): Promise‹Type›

Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:27

Parameters:

NameType
dataType
contextany

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:

NameType
filterQueryFilter‹Type›
contextany
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:

NameType
argsany
contextany

Returns: Promise‹Type›


subscribeToCreate#

subscribeToCreate(filter?: any, context?: any): AsyncIterator‹Type›

Defined in packages/graphback-core/src/runtime/GraphbackProxyService.ts:39

Parameters:

NameType
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:

NameType
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:

NameType
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:

NameType
dataType
contextany

Returns: Promise‹Type›