Finding out if result from query is different from previous result


I'm using javascript 'elasticsearch.js' to query and the Sequence diagram lib 'mermaid.js' to create sequence diagram from elasticsearch data. Below is some of my code.

Question: Is there a way to check if a result (data here) is the same as last time I used search?

  data = {
      "body": {
        "query": {
          "bool" : {
              "must" : [

  const response =, function(error, response, status) {

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.