Skip to content

Commit 6c18968

Browse files
committed
Add support for PostgreSQL's jsonb type
1 parent 1194f68 commit 6c18968

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
@@ -19,7 +19,8 @@ def type_map
1919
date: 'GraphQL::Types::ISO8601Date',
2020
hstore: 'GraphQL::Types::JSON',
2121
text: 'String',
22-
json: 'GraphQL::Types::JSON'
22+
json: 'GraphQL::Types::JSON',
23+
jsonb: 'GraphQL::Types::JSON'
2324
}
2425
end
2526

0 commit comments

Comments
 (0)