Skip to content

Commit a1827e0

Browse files
committed
add support for json columns
1 parent fecdabd commit a1827e0

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
@@ -15,7 +15,8 @@ def type_map
1515
datetime: 'GraphQL::Types::ISO8601DateTime',
1616
date: 'GraphQL::Types::ISO8601Date',
1717
hstore: 'GraphQL::Types::JSON',
18-
text: 'String'
18+
text: 'String',
19+
json: 'GraphQL::Types::JSON'
1920
}
2021
end
2122

0 commit comments

Comments
 (0)