About the serialization problem of bigint. #3645
Unanswered
temeipu-offical
asked this question in
Q&A
Replies: 1 comment
-
|
Sorry for the slow response
If you already have a custom serializer, you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Column get id => int64().autoIncrement()();
This code uses Drift's native JSON serialization tool, and the generated toJson method fails when it encounters a BigInt type conversion error. How can I fix this problem? I tried using a custom serializer, but couldn't find a top-level entry point to make it permanent.
Error code
'id': serializer.toJson(id),
Error code log
Beta Was this translation helpful? Give feedback.
All reactions