useQuery always runs on the begining of a component render

lazyQuery runs after a certain action. Like searching for a particular name in a database, lazy query will run once we press enter after typing what we have to search.