improvement: Add missing definition for Ash.Type.Time type (#64)

This commit is contained in:
Mariusz Morawski 2023-04-03 17:10:55 +02:00 committed by GitHub
parent f8a9f7d9aa
commit 513e14f1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3426,6 +3426,7 @@ defmodule AshGraphql.Resource do
do: Application.get_env(:ash, :utc_datetime_type) || raise_datetime_error() do: Application.get_env(:ash, :utc_datetime_type) || raise_datetime_error()
defp get_specific_field_type(Ash.Type.NaiveDatetime, _, _, _), do: :naive_datetime defp get_specific_field_type(Ash.Type.NaiveDatetime, _, _, _), do: :naive_datetime
defp get_specific_field_type(Ash.Type.Time, _, _, _), do: :time
defp get_specific_field_type(Ash.Type.UUID, _, _, _), do: :id defp get_specific_field_type(Ash.Type.UUID, _, _, _), do: :id
defp get_specific_field_type(Ash.Type.Float, _, _, _), do: :float defp get_specific_field_type(Ash.Type.Float, _, _, _), do: :float