-
I'm trying to implement offset-based pagination for one of my resolvers. when the resolver executes I want to return a payload that looks like this
To achieve this I created to type
and wants to build the objectType out of the above type
I'm not sure my approach is correct. I went through the doc but it's a bit hard to understand for me. I post this question SO as well but couldn't get any luck |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
builder.prismaObject returns a ref you can use as the type for fields |
Beta Was this translation helpful? Give feedback.
-
@ChamaraWP I saw your post on stack overflow, could you post your entire solution. I need offset pagination to use Apollo client to get page numbered displays. The relay pagination support just does continuous scroll. |
Beta Was this translation helpful? Give feedback.
builder.prismaObject returns a ref you can use as the type for fields