how can I use this CronExpression ecto type ? #84
-
hi, I have one question. 1:- So I tried this
but I'm not able to pass this in a JSON. In order to consume this, what data should I send? What should I do with struct? Right now I'm getting this error when I'm trying to send after using the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
@siddhant3030 You'll have to send it to the frontend as a string or implement a Jason.Encoder for the struct. |
Beta Was this translation helpful? Give feedback.
@siddhant3030 You'll have to send it to the frontend as a string or implement a Jason.Encoder for the struct.
https://hexdocs.pm/jason/Jason.Encoder.html