Nikolai Ammosov
Nikolai Ammosov
@choonggg try `hash = Serializers::Impression.new([Impression.new]).build_schema` `JSON.dump hash`
Why not use a redefined method? json_schema do { id: String, title: String, products: Array } end def products Products::Serializer.new( object.products ).build_schema end
you can try ``` def products Surrealist.surrealize_collection(object.products, raw: true) end ``` I just don't like to use values in json_schema to invoke something, i think it is better to use...
I have same problem, append_child works wrong with persisted records.