graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

convert CursorPagingArguments to class

Open RichardGrant-93 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem?

I love the UsePaging functionality that HotChocolate offers out of the box, what i don't like is the performance behind the implementation. All rows are fetched from the DB then filtered / sorted. This means more data is indexed in your DB than necessary. HotChocolate offers some cool functionality with Entity framework tying in pagination solving my problem; however, I am heavily invested into the Dapper ORM using stored procedure patterns.

To get the functionality i need am adding a custom CursorPagingArguments class to my resolver parameters which then passes the paging information to my DataAccessLayer.

The solution you'd like

Would be nice if this readonly struc was a class instead. as structs cannot be used as resolver params.

Product

Hot Chocolate

RichardGrant-93 avatar Aug 01 '22 04:08 RichardGrant-93