class Graphql::Generators::InputGenerator
Generate an input type by name, with the specified fields.
rails g graphql:object PostType name:string!
Public Class Methods
# File lib/generators/graphql/input_generator.rb, line 19 def self.normalize_type_expression(type_expression, mode:, null: true) case type_expression.camelize when "Text", "Citext" ["String", null] when "Decimal" ["Float", null] when "DateTime", "Datetime" ["GraphQL::Types::ISO8601DateTime", null] when "Date" ["GraphQL::Types::ISO8601Date", null] when "Json", "Jsonb", "Hstore" ["GraphQL::Types::JSON", null] else super end end
Calls superclass method