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