The to-value may be undefined to fetch all data until end