Skip to content

Commit e552c65

Browse files
committed
dont blow up on unsupported column types
1 parent a1827e0 commit e552c65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/generators/gql/gql_generator_base.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def map_model_types(model_name)
2727

2828
klass.columns
2929
.reject { |col| bt_columns.include?(col.name) }
30-
.map { |col| {name: col.name, gql_type: type_map.fetch(col.type)} }
30+
.reject { |col| type_map[col.type].nil? }
31+
.map { |col| {name: col.name, gql_type: type_map[col.type]} }
3132
end
3233
end
3334
end

0 commit comments

Comments
 (0)