if a query is passed to filter, resolve filter on query success