I am trying to make a search functionality in my app which basically filter the json data (for eg. product list) according to the query of user(like any product name) and shows the nearest results. I have succesfully implemented this search bar and logic of filtering but it is working on the local json data of my product list I have in my app. What I want is to fetch the json data from Network call (http call) and then filter it . But I have the data in my realtime-database and I do not know how to retrieve them as in json format. I could setup the cloud functions(node js) to return the json data to the client but I am not sure about what should be the logic in the cloud functions to connect it to realtime-database and return the response
Now how can I fetch this data from my app through the cloud functions ?