The IType interface is a collection of Orders, Customers and Products classes.
PS: The reason for using the Interface is to restrict the T types. If there is a better way, please let me know.
The class structure on the top is the same, except for the property Orders. It's called Customers in Customers, and Products in Products. So the data.Orders.Edges will be data.Customers.Edges for Customers, and data.Products.Edges for Products.
So the name after data is the only thing that will change in this method. The rest is the same (Edges, PageInfo etc)
How can I accomplish this so that it can be used for Orders, Customers and Products?
I know about checking if T is Orders, Customers or Products.