Version: 0.15.x

DataSyncPlugin

DataSync plugin

Plugin is enabled by """ @datasync """ annotation It will generate delta queries

Hierarchy

  • GraphbackPlugin

    DataSyncPlugin

Index

Methods

Methods

Protected addDataSyncMetadataFields

addDataSyncMetadataFields(schemaComposer: SchemaComposer‹any›, model: ModelDefinition): void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:152

Parameters:

NameType
schemaComposerSchemaComposer‹any›
modelModelDefinition

Returns: void


Protected addDeltaSyncResolver

addDeltaSyncResolver(model: ModelDefinition, queryObj: IFieldResolver‹any, any›): void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:132

Parameters:

NameType
modelModelDefinition
queryObjIFieldResolver‹any, any›

Returns: void


createResolvers

createResolvers(metadata: GraphbackCoreMetadata): IResolvers

Overrides void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:102

Creates resolvers for Data Synchonization

Parameters:

NameTypeDescription
metadataGraphbackCoreMetadataCore metatata containing all model information

Returns: IResolvers


createResources

createResources(metadata: GraphbackCoreMetadata): void

Overrides void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:121

Parameters:

NameType
metadataGraphbackCoreMetadata

Returns: void


getPluginName

getPluginName(): string

Overrides void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:128

Returns: string


Protected logError

logError(message: string): void

Inherited from DataSyncPlugin.logError

Defined in packages/graphback-core/types/plugin/GraphbackPlugin.d.ts:37

Parameters:

NameType
messagestring

Returns: void


Protected logWarning

logWarning(message: string): void

Inherited from DataSyncPlugin.logWarning

Defined in packages/graphback-core/types/plugin/GraphbackPlugin.d.ts:36

Parameters:

NameType
messagestring

Returns: void


transformSchema

transformSchema(metadata: GraphbackCoreMetadata): GraphQLSchema

Overrides void

Defined in packages/graphback-datasync/src/DataSyncPlugin.ts:26

Parameters:

NameType
metadataGraphbackCoreMetadata

Returns: GraphQLSchema