From 03b7205dc8594fd3c8ee2b57cccdb469dc96eb82 Mon Sep 17 00:00:00 2001 From: Panagiotis Karatakis Date: Wed, 19 Oct 2022 14:09:21 +0300 Subject: [PATCH] Add DateTimeWithTimeZone to filter generation (#80) --- derive/src/filter.rs | 2 ++ src/lib.rs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/derive/src/filter.rs b/derive/src/filter.rs index 0522b7be..01ef74b5 100644 --- a/derive/src/filter.rs +++ b/derive/src/filter.rs @@ -68,6 +68,8 @@ pub fn filter_struct( "DateTime", #[cfg(feature = "with-chrono")] "DateTimeUtc", + #[cfg(feature = "with-chrono")] + "DateTimeWithTimeZone", #[cfg(feature = "with-decimal")] "Decimal", #[cfg(feature = "with-json")] diff --git a/src/lib.rs b/src/lib.rs index 0940f343..bba949d2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -171,6 +171,13 @@ pub type BinaryVector = Vec; feature = "with-chrono", graphql(concrete(name = "DateTimeUtcFilter", params(sea_orm::prelude::DateTimeUtc))) )] +#[cfg_attr( + feature = "with-chrono", + graphql(concrete( + name = "DateTimeWithTimeZoneFilter", + params(sea_orm::prelude::DateTimeWithTimeZone) + )) +)] // TODO #[graphql(concrete(name = "TimestampFilter", params()))] // TODO #[graphql(concrete(name = "TimestampWithTimeZoneFilter", params()))] #[cfg_attr(