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
Datetime fields are not serialized by .into_json() on queries. Possible duplicate of #530.
Steps to Reproduce
Add UUID in any Model(Entity)
Run into_json query
It will hide the UUID field. If into_json removed field comes back.
Expected Behavior
It should convert UUID to string and should be visible in the final JSON output.
Actual Behavior
The field is missing as explained above.
Reproduces How Often
It can be reproduced every time.
Versions
0.6
Additional Information
#[sea_orm(table_name = "categories")]pubstructModel{#[sea_orm(primary_key)]pubid:i32,pubapi_key:Uuid,pubadded:DateTime,pubupdated:DateTime,}let db = &data.conn;let u = Uuid::parse_str(uuid.as_str()).expect("UUID is required!");let category = Category::find().filter(categories::Column::ApiKey.eq(u)).into_json().one(db).await.expect("category not found");
The text was updated successfully, but these errors were encountered:
Description
Datetime fields are not serialized by .into_json() on queries. Possible duplicate of #530.
Steps to Reproduce
Expected Behavior
It should convert UUID to string and should be visible in the final JSON output.
Actual Behavior
The field is missing as explained above.
Reproduces How Often
It can be reproduced every time.
Versions
0.6
Additional Information
The text was updated successfully, but these errors were encountered: