Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 716 Bytes
namespace GraphQL.Types.Relay
{
public class PageInfoType : ObjectGraphType<object>
{
public PageInfoType()
{
Name = "PageInfo";
Description = "Information about pagination in a connection.";
Field<NonNullGraphType<BooleanGraphType>>("hasNextPage", "When paginating forwards, are there more items?");
Field<NonNullGraphType<BooleanGraphType>>("hasPreviousPage", "When paginating backwards, are there more items?");
Field<StringGraphType>("startCursor", "When paginating backwards, the cursor to continue.");
Field<StringGraphType>("endCursor", "When paginating forwards, the cursor to continue.");
}
}
}
You can’t perform that action at this time.