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
use serde::Serialize;use chrono::naive::serde::ts_milliseconds;#[derive(Serialize)]pubstructExample{#[serde(with = "ts_milliseconds")]pubtimestamp:NaiveDateTime,}
The text was updated successfully, but these errors were encountered:
Juniper gives you the opportunity to use
chrono::NaiveDateTime
but I didn't find a way to represent timestamp in milliseconds.https://docs.rs/chrono/0.4.11/chrono/naive/serde/index.html
https://docs.rs/chrono/0.4.11/chrono/serde/index.html
At the moment, using
serde
, I can do this:The text was updated successfully, but these errors were encountered: