-
Notifications
You must be signed in to change notification settings - Fork 20
Inherited Surrealist::Serializer does not accept array as object #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok, looks like I may have misread it!
I'm just wondering here, since using We can use a raw object |
@choonggg try |
Thanks @kolasss, it works. Just wondering if it can be done automatically or with another method without going through JSON/Oj dumping. |
Hey @choonggg thank you for the issue, I will look into this during the week |
great! @nesaulov thank you. |
I'm using Hanami as backend and I have this serializer here inheriting `Surrealist::Serializer)
When I tried to use a collection, it returns a weird result with the object stringifed.
What works is mapping them into the serializer then using it as the object argument.
I know this portion of docs is meant for AR but maybe I misread about accepting a collection?
https://github.com/nesaulov/surrealist#activerecord
The text was updated successfully, but these errors were encountered: