0
我正在尝试为使用store_accessor的“A”模型设置类型。我不知道如何定义具有JSON列的列 - :富graphql中的Rails jsonb列
class A < ActiveRecord
store_accessor :foo, :bar, :baz
end
Types::AType = GraphQL::ObjectType.define do
name ‘A’
field: id, !types.ID
field :bar, !types.String, hash_key: :bar
field :baz, !types.String, hash_key: :baz
end