modified the getQuery method signature to add the fetcher as parameter