Module: GraphQL::Relay

Defined in:
lib/graphql/relay/edge.rb,
lib/graphql/relay/version.rb,
lib/graphql/relay/mutation.rb,
lib/graphql/relay/page_info.rb,
lib/graphql/relay/global_id_field.rb,
lib/graphql/relay/base_connection.rb,
lib/graphql/relay/connection_field.rb,
lib/graphql/relay/array_connection.rb,
lib/graphql/relay/relation_connection.rb,
lib/graphql/relay/global_node_identification.rb

Defined Under Namespace

Classes: ArrayConnection, BaseConnection, ConnectionField, Edge, GlobalIdField, GlobalNodeIdentification, Mutation, RelationConnection

Constant Summary collapse

VERSION =
'0.6.1'
PageInfo =

Wrap a Connection and expose its page info

GraphQL::ObjectType.define do
  name("PageInfo")
  description("Metadata about a connection")
  field :hasNextPage, !types.Boolean, property: :has_next_page
  field :hasPreviousPage, !types.Boolean, property: :has_previous_page
end