How does client know when update query is to be called?


I think this should have only one api - getFrequentQueries(). A client wouldn’t know whether a query is a new one ,.That’s for our application to figure out.


@saif7 Read API can check if the search term exist in the data store. If not, then it can call an API to create the search term. If exist, call an API to update the frequency of that search term.