You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As documented on this issue here, it's impossible to get Poison.Encoder to derive valid JSON from an Cassandra Ecto repo, as long as :binary_id was set as the type for the @primary_key. It took me a day to dig into this issue and try & error - in the end José suggested to try Ecto.UUID instead of :binary_id, which seems to have does the trick.
Maybe you would like to adjust the documentation for Cassandra Ecto so that it mentions this solution for everyone else who might have this issue while using Cassandra UUID primary keys?
The text was updated successfully, but these errors were encountered:
As documented on this issue here, it's impossible to get
Poison.Encoder
to derive valid JSON from an Cassandra Ecto repo, as long as:binary_id
was set as the type for the@primary_key
. It took me a day to dig into this issue and try & error - in the end José suggested to tryEcto.UUID
instead of:binary_id
, which seems to have does the trick.Maybe you would like to adjust the documentation for Cassandra Ecto so that it mentions this solution for everyone else who might have this issue while using Cassandra UUID primary keys?
The text was updated successfully, but these errors were encountered: