GreenFairy.CQL.Scalars.DateTime.PeriodDirection (GreenFairy v0.3.0)
View SourceEnum for period direction in date/time filtering.
Used with the _period operator to specify whether to filter
records in the past (LAST) or future (NEXT).
Values
:last- Filter records in the past relative to now:next- Filter records in the future relative to now
Example
# Last 7 days
%{direction: :last, unit: :day, count: 7}
# Next 3 months
%{direction: :next, unit: :month, count: 3}
Summary
Functions
Transform an Ecto/database value to its GraphQL enum representation.
Transform a GraphQL enum value to its Ecto/database representation.
Functions
Transform an Ecto/database value to its GraphQL enum representation.
Default implementation returns the value unchanged. Override this function to provide custom transformations.
Transform a GraphQL enum value to its Ecto/database representation.
Default implementation returns the value unchanged. Override this function to provide custom transformations.