Pull incremental data

To pull incremental data the filter should include a reference fields used as a watermark. Subsequent queries then use the watermark value from the previous query as the starting point for retrieving "new" records.

Note: The results can include duplicate records when the watermark field is updated in previously pulled records. The application should deal with duplicate records, and the watermark should be a field that is not likely to change.

Data query

The example uses the e_lastupdated field, which indicate when any externally visible field was updated.

query getData($filter: Filter){
  feedback(
    filter: $filter,
  ){
    nodes{ #object with data
        fieldData(fieldId:"e_lastupdated"){ values}
    }
  }

Variable

Here the filter is using the value of the e_lastupdated field from the last pull request to retrieve only records updated since the previous request.

{
  "filter": { "fieldIds": ["e_lastupdated"], "gt": "2018-09-15 15:53:00"}
}