AbsintheUtils.Types.DateFilterTypes (absinthe_utils v0.3.0)

View Source

Absinthe input objects for date and datetime filtering.

Usage:

  1. Import the required type in your Absinthe schema.

    import_types(AbsintheUtils.Scalars.StrictNaiveDateTime)
    import_types(AbsintheUtils.Types.DateFilterTypes)
  2. Use the :date_filter and :datetime_filter input objects in your queries or mutations. Example:

    input do
      field :created_at, :datetime_filter
    end