From 1ce649e3f643361d04883d477144ba1cf8485096 Mon Sep 17 00:00:00 2001 From: Panagiotis Karatakis Date: Sun, 16 Oct 2022 01:42:58 +0300 Subject: [PATCH] Add DateTimeWithTimeZone to filter generation --- derive/src/filter.rs | 2 ++ src/lib.rs | 4 ++++ 2 files changed, 6 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 e01a59dc..53b1a5f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -170,6 +170,10 @@ 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(