Method: Graphql::Generators::FieldExtractor#generate_column_string
- Defined in:
- lib/generators/graphql/field_extractor.rb
#generate_column_string(column) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/generators/graphql/field_extractor.rb', line 13 def generate_column_string(column) name = column.name required = column.null ? "" : "!" type = column_type_string(column) "#{name}:#{required}#{type}" end |