Replay a way to get the query paramter: type. The new way doesn't need to initize queryData object.