Sha256: 336062ae2222ab94365994c1d2985ec346ff8c15d78652f128ee75bc2cb4711d

Contents?: true

Size: 904 Bytes

Versions: 71

Compression:

Stored size: 904 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Types
    module Relay
      module PageInfoBehaviors
        def self.included(child_class)
          child_class.extend GraphQL::Types::Relay::DefaultRelay

          child_class.description "Information about pagination in a connection."
          child_class.field :has_next_page, Boolean, null: false,
            description: "When paginating forwards, are there more items?"

          child_class.field :has_previous_page, Boolean, null: false,
            description: "When paginating backwards, are there more items?"

          child_class.field :start_cursor, String, null: true,
            description: "When paginating backwards, the cursor to continue."

          child_class.field :end_cursor, String, null: true,
            description: "When paginating forwards, the cursor to continue."
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
graphql-1.13.23 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.22 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.21 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.20 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.17.2 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.17.1 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.19 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.18 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.17 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.19 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.18 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.16 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.17 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.15 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.14 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.16 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.13 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.12 lib/graphql/types/relay/page_info_behaviors.rb
graphql-1.13.15 lib/graphql/types/relay/page_info_behaviors.rb
graphql-2.0.11 lib/graphql/types/relay/page_info_behaviors.rb