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.
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"}
}