Sha256: 0fc81da56547bdcc72b0ecff829da5a9f70595f20e308931704fa5eb58365104

Contents?: true

Size: 1.24 KB

Versions: 15

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true
require "graphql/types/relay/base_field"
require "graphql/types/relay/base_object"
require "graphql/types/relay/base_interface"
require "graphql/types/relay/page_info"
require "graphql/types/relay/base_connection"
require "graphql/types/relay/base_edge"
require "graphql/types/relay/node"

module GraphQL
  module Types
    # This module contains some types and fields that could support Relay conventions in GraphQL.
    #
    # You can use these classes out of the box if you want, but if you want to use your _own_
    # GraphQL extensions along with the features in this code, you could also
    # open up the source files and copy the relevant methods and configuration into
    # your own classes.
    #
    # For example, the provided object types extend {Types::Relay::BaseObject},
    # but you might want to:
    #
    # 1. Migrate the extensions from {Types::Relay::BaseObject} into _your app's_ base object
    # 2. Copy {Relay::BaseConnection}, {Relay::BaseEdge}, etc into _your app_, and
    #   change them to extend _your_ base object.
    #
    # Similarly, `BaseField`'s extensions could be migrated to your app
    # and `Node` could be implemented to mix in your base interface module.
    module Relay
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql-1.8.18 lib/graphql/types/relay.rb
graphql-1.8.17 lib/graphql/types/relay.rb
graphql-1.8.16 lib/graphql/types/relay.rb
graphql-1.8.15 lib/graphql/types/relay.rb
graphql-1.8.14 lib/graphql/types/relay.rb
graphql-1.8.13 lib/graphql/types/relay.rb
graphql-1.8.12 lib/graphql/types/relay.rb
graphql-1.8.11 lib/graphql/types/relay.rb
graphql-1.8.10 lib/graphql/types/relay.rb
graphql-1.8.9 lib/graphql/types/relay.rb
graphql-1.8.8 lib/graphql/types/relay.rb
graphql-1.8.7 lib/graphql/types/relay.rb
graphql-1.8.6 lib/graphql/types/relay.rb
graphql-1.8.5 lib/graphql/types/relay.rb
graphql-1.8.4 lib/graphql/types/relay.rb