Sha256: 445da093d90ce04deb445019a57bad2d211e12f737b7b1798431172a8a87ee2f
Contents?: true
Size: 971 Bytes
Versions: 47
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true module GraphQL module Types module Relay module PageInfoBehaviors def self.included(child_class) child_class.extend ClassMethods 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 module ClassMethods def default_relay? true end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems