Sha256: a777f83ac1adafddc674c7ab31a75058b17c6782f04260cb39ae5e7f4582c09a

Contents?: true

Size: 693 Bytes

Versions: 20

Compression:

Stored size: 693 Bytes

Contents

module GraphQL
  module Relay
    # Wrap a Connection and expose its page info
    PageInfo = GraphQL::ObjectType.define do
      name("PageInfo")
      description("Metadata about 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
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
graphql-0.19.2 lib/graphql/relay/page_info.rb
graphql-0.19.1 lib/graphql/relay/page_info.rb
graphql-0.19.0 lib/graphql/relay/page_info.rb
graphql-0.18.15 lib/graphql/relay/page_info.rb
graphql-0.18.14 lib/graphql/relay/page_info.rb
graphql-0.18.13 lib/graphql/relay/page_info.rb
graphql-0.18.12 lib/graphql/relay/page_info.rb
graphql-0.18.11 lib/graphql/relay/page_info.rb
graphql-0.18.10 lib/graphql/relay/page_info.rb
graphql-0.18.9 lib/graphql/relay/page_info.rb
graphql-0.18.8 lib/graphql/relay/page_info.rb
graphql-0.18.7 lib/graphql/relay/page_info.rb
graphql-0.18.6 lib/graphql/relay/page_info.rb
graphql-0.18.5 lib/graphql/relay/page_info.rb
graphql-0.18.4 lib/graphql/relay/page_info.rb
graphql-0.18.3 lib/graphql/relay/page_info.rb
graphql-0.18.2 lib/graphql/relay/page_info.rb
graphql-0.18.1 lib/graphql/relay/page_info.rb
graphql-0.18.0 lib/graphql/relay/page_info.rb
graphql-relay-0.12.0 lib/graphql/relay/page_info.rb