Skip to main content
Skip table of contents

Ignore Changes

Values can be ignored (they will be deleted) by passing a JSON object to the parameter dxConfig with a value containing an array of configuration instructions. Currently the only instruction supported is the ignoreChanges instruction. You specify keys of values to ignore. For ease of use with the command line clients, we have provided a parameter to input this as a file. Simply store your dxConfig instructions in a JSON file, and they can be easily re-used with different calls. An example of the format is below:

Input A
JS
{
 "created":"2017-01-31T16:55:25.700Z",
 "description": "This is an example of dxConfig"
}
Input B
JS
{
 "created":"2016-05-12T13:15:23.700Z",
 "description": "This is an example of ignoreChanges"
}

Specify the object keys you want changes in their value ignored:

dx_config
JS
{
 "dxConfig": [
  {
   "ignoreChanges": "delete",
   "key": "created"
  }
 ]
}

When used with the change-type of changesOnly (rather than fullContext), you can see even though the value of "created" has changed it is not present in the comparison output:

Delta
JS
{
 "description": {
  "dx_delta": {
   "A": "This is an example of dxConfig",
   "B": "This is an example of ignoreChanges"
  }
 }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.