Aggregate only limited documents

Hey All,
Is there any way to aggregate only a few document? For example, a query return 10million records but I want only 1million latest records.