Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/graphql/relay/page_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ module Relay
PageInfo = GraphQL::ObjectType.define do
name("PageInfo")
description("Information about pagination in a connection.")
field :hasNextPage, !types.Boolean, "Indicates if there are more pages to fetch", property: :has_next_page
field :hasPreviousPage, !types.Boolean, "Indicates if there are any pages prior to the current page", property: :has_previous_page
field :startCursor, types.String, "When paginating backwards, the cursor to continue", property: :start_cursor
field :endCursor, types.String, "When paginating forwards, the cursor to continue", property: :end_cursor
field :hasNextPage, !types.Boolean, "When paginating forwards, are there more items?", property: :has_next_page
field :hasPreviousPage, !types.Boolean, "When paginating backwards, are there more items?", property: :has_previous_page
field :startCursor, types.String, "When paginating backwards, the cursor to continue.", property: :start_cursor
field :endCursor, types.String, "When paginating forwards, the cursor to continue.", property: :end_cursor
default_relay true
end
end
Expand Down