-
Notifications
You must be signed in to change notification settings - Fork 48
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
Response is not transformed #55
Comments
Hi, |
thank you both, for finding and fixing this! PR was merged, but I'll publish the package when I get out from work. @Gollor - please use the |
published: https://hex.pm/packages/bolt_sips/1.2.1-rc2 |
Thank you for quick response! The solution works. Though this makes me wonder if there is some way to easily encode Bolt structs into jsons. At the moment I have to do it manually via the next code:
Is it possible to make some kind of extension to Jason library so it could correctly transform the type to the string? At the moment it separates the datetime and time offset separately. I tried to dive in a little but it seems Protocol.derive only allows to control the visibility of the fields, not how they are processed. Maybe Bolt.Sips should transform types into serialized strings at the response creation? Or choose the strategy depending on options passed. |
@Gollor - thank you for feedback. Making an extension to a json library i.e. Jason, probably would be out of scope for us, from the driver's perspective. But we could see the value of some utilitarian functions that could help you when needed; maybe future improvements to the |
Hi, it seems that the current verison of Bolt.Sips.Response.transform is not working correctly. When i do the next neo4j query...
I get the next response:
So the DateTime doesn't get parsed correctly.
Currently I solve this using the next code in my view:
This is just a workaround using the code I stripped from your Bolt.Sips.Response class.
The text was updated successfully, but these errors were encountered: