Sha256: 69cbab5eb5959db654c11f00158b9b7af69c838778b34353c4b9aea756c82055
Contents?: true
Size: 711 Bytes
Versions: 11
Compression:
Stored size: 711 Bytes
Contents
module GraphQL module Relay # Wrap a Connection and expose its page info 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 end end end
Version data entries
11 entries across 11 versions & 1 rubygems