Pagination Or Infinite Scrolling Which is Better as Per the SEO Point of View

Hello Guys,

I am working on a website containing a huge amount of pages. What will be better as per the SEO point of view Pagination or Infinite Scrolling?