module Graphoid::Mapper

Public Class Methods

convert(field) click to toggle source
# File lib/graphoid/mapper.rb, line 6
def convert(field)
  return GraphQL::Types::ID if field.name.end_with?('id')

  Graphoid.driver.types_map[field.type] || GraphQL::Types::String
end