Sha256: 560586b1e397705ab9c5a38cca0faaae6bb9bc120f1a45ef578d4e7517d18164

Contents?: true

Size: 347 Bytes

Versions: 23

Compression:

Stored size: 347 Bytes

Contents

module GraphQL
  module Relay
    module EdgeType
      def self.create_type(wrapped_type, name: nil, &block)
        GraphQL::ObjectType.define do
          name("#{wrapped_type.name}Edge")
          field :node, wrapped_type
          field :cursor, !types.String
          block && instance_eval(&block)
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
graphql-0.19.2 lib/graphql/relay/edge_type.rb
graphql-0.19.1 lib/graphql/relay/edge_type.rb
graphql-0.19.0 lib/graphql/relay/edge_type.rb
graphql-0.18.15 lib/graphql/relay/edge_type.rb
graphql-0.18.14 lib/graphql/relay/edge_type.rb
graphql-0.18.13 lib/graphql/relay/edge_type.rb
graphql-0.18.12 lib/graphql/relay/edge_type.rb
graphql-0.18.11 lib/graphql/relay/edge_type.rb
graphql-0.18.10 lib/graphql/relay/edge_type.rb
graphql-0.18.9 lib/graphql/relay/edge_type.rb
graphql-0.18.8 lib/graphql/relay/edge_type.rb
graphql-0.18.7 lib/graphql/relay/edge_type.rb
graphql-0.18.6 lib/graphql/relay/edge_type.rb
graphql-0.18.5 lib/graphql/relay/edge_type.rb
graphql-0.18.4 lib/graphql/relay/edge_type.rb
graphql-0.18.3 lib/graphql/relay/edge_type.rb
graphql-0.18.2 lib/graphql/relay/edge_type.rb
graphql-0.18.1 lib/graphql/relay/edge_type.rb
graphql-0.18.0 lib/graphql/relay/edge_type.rb
graphql-relay-0.12.0 lib/graphql/relay/edge_type.rb