Documentation/Example on how to use pagination with ResourceList

I’m building a Node JS App, and I’m creating a Resource List that needs pagination. In this documentation it says you can set hasMoreItems to true and this would determine whether or not to set the paginatedSelectAllAction and paginatedSelectAllText props on the BulkActions component. However, I can’t find any examples or additional documentation on how to set the paginatedSelectAllAction field/parameter. Does anyone know how to do this, or can someone from Shopify provide more documentation or examples of how to use this functionality?