fix: use checked constraints

This commit is contained in:
Barnabas Jovanovics 2024-07-01 11:10:16 +02:00
parent 832b09a4dc
commit dcdaef0226

View file

@ -4160,7 +4160,7 @@ defmodule AshGraphql.Resource do
else else
if Spark.implements_behaviour?(type, Ash.Type.Enum) do if Spark.implements_behaviour?(type, Ash.Type.Enum) do
if function_exported?(type, :graphql_type, 1) do if function_exported?(type, :graphql_type, 1) do
type.graphql_type(attribute.constraints) type.graphql_type(constraints)
else else
:string :string
end end