Apollo Client Cache : How to read all queries that have executed

Viewed 11

I have a getStudents Query with different variables option possible (firstName, lastName, dob, standardId, classId) which fetches the list of students that match the search criteria. I want to know is there a way in Apollo Cache I can get all getStudents Queries that have been executed along with its variables.

e.g. If so far we have run 3 getStudents queries with

  • getStudents (variables : {firstName : "abc"})
  • getStudents (variables : {firstName : "abc" , lastName : "def" })
  • getStudents (variables : {firstName : "abc", standardId: 1 })

I need all of the above queries along with the variables with which it was executed. I can not find any such option in the Apollo Documents.

Can some one please guide me here.

0 Answers
Related