Skip to content

Commit

Permalink
fix: add UUIDv7 to map the type to :id
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 9, 2024
1 parent 9178e7e commit 789711f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4405,6 +4405,7 @@ defmodule AshGraphql.Resource do
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.UUIDv7, _, _, _), do: :id
defp get_specific_field_type(Ash.Type.Float, _, _, _), do: :float

defp get_specific_field_type(Ash.Type.Struct, %{constraints: constraints}, resource, input?) do
Expand Down

0 comments on commit 789711f

Please sign in to comment.