Hello @MWD_Wajih_N_A, welcome to the MongoDB Community forum.
The function updateMonthlySales_05 is created in the mongo shell, and it is available in that environment, until you exit the shell. It is just a JavaScript function. The example used the function to demonstrate the On-Demand Materialized Views.
I really appreciate you taking time out. Now, as you can see, I am using Robo to create this function but its not getting saved and hence is not getting queried either.
Hello @MWD_Wajih_N_A, I don’t use a Robo tool , so I don’t know how it works (perhaps the tool comes with a Help or User Guide and there should be a link or a button or a menu option on the GUI itself).