Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonResultsAdapterConfig

Configuration info to be passed to the JsonResultsAdapter constructor

Hierarchy

  • JsonResultsAdapterConfig

Index

Properties

Optional extractDeletedKeys

extractDeletedKeys: function

A function that is called once per save operation to extract any deleted keys from any json received over the wire. Must return an array. This method has a default implementation which simply returns an empty array.

Type declaration

    • (data: __type): any[]
    • Parameters

      • data: __type

      Returns any[]

Optional extractKeyMappings

extractKeyMappings: function

A function that is called once per save operation to extract the key mappings from any json received over the wire. Must return an array. This method has a default implementation which simply returns the "keyMappings" property from any json returned as a result of executing the save.

Type declaration

Optional extractResults

extractResults: Function

A Function that is called once per query operation to extract the 'payload' from any json received over the wire. This method has a default implementation which to simply return the "results" property from any json returned as a result of executing the query.

Optional extractSaveResults

extractSaveResults: Function

A function that is called once per save operation to extract the entities from any json received over the wire. Must return an array. This method has a default implementation which simply returns the "entities" property from any json returned as a result of executing the save.

name

name: string

The name of this adapter. This name is used to uniquely identify and locate this instance when an 'exported' JsonResultsAdapter is later imported.

Optional visitNode

visitNode: function

A visitor method that will be called on each node of the returned payload.

Type declaration

Generated using TypeDoc