What is most efficient way to get the data from a 10million data collections?

What does your query look like as well as a document?
What does an explain show?
What exact indexes have you created?
On-Prem or Atlas and if Atlas what tier?
Is it a cluster or single server?

Put a sample document in mongo playground so people can see exactly what you’re doing: