Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some details to hasNextPage/hasPreviousPage descriptions. #673

Merged
merged 2 commits into from
Apr 19, 2017
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