Passing parameters to hooks

Hi,
I want to run a specific afterQuery hook for query1 and another afterQuery hook for query2. Is it possible to pass a parameter to the hook function so it’ll give conditional results based on this parameter?

Are both queries for the same collection?

@yoav-wix , yes they are for the same collection