passing queryConfig instead of options