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