Implemented path prefix of queries to fetch