Skip to content

Commit

Permalink
Add DateTimeWithTimeZone to filter generation (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis authored Oct 19, 2022
1 parent 9cbefd2 commit 03b7205
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions derive/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ pub type BinaryVector = Vec<u8>;
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(
Expand Down

0 comments on commit 03b7205

Please sign in to comment.