Module: GraphQL::Relay

Defined in:
lib/graphql/relay/edge.rb,
lib/graphql/relay/node.rb,
lib/graphql/relay/mutation.rb,
lib/graphql/relay/edge_type.rb,
lib/graphql/relay/page_info.rb,
lib/graphql/relay/range_add.rb,
lib/graphql/relay/base_connection.rb,
lib/graphql/relay/connection_type.rb,
lib/graphql/relay/mutation/result.rb,
lib/graphql/relay/array_connection.rb,
lib/graphql/relay/mutation/resolve.rb,
lib/graphql/relay/global_id_resolve.rb,
lib/graphql/relay/connection_resolve.rb,
lib/graphql/relay/relation_connection.rb,
lib/graphql/relay/edges_instrumentation.rb,
lib/graphql/relay/mutation/instrumentation.rb,
lib/graphql/relay/connection_instrumentation.rb

Defined Under Namespace

Modules: ConnectionInstrumentation, ConnectionType, EdgeType, EdgesInstrumentation, Node Classes: ArrayConnection, BaseConnection, ConnectionResolve, Edge, GlobalIdResolve, Mutation, RangeAdd, RelationConnection

Constant Summary collapse

PageInfo =

Wrap a Connection and expose its page info

GraphQL::ObjectType.define do
  name("PageInfo")
  description("Information about pagination in a connection.")
  field :hasNextPage, !types.Boolean, "When paginating forwards, are there more items?", property: :has_next_page
  field :hasPreviousPage, !types.Boolean, "When paginating backwards, are there more items?", 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
  default_relay true
end