From dcdaef02264a052841ad5a724916737add76c94e Mon Sep 17 00:00:00 2001 From: Barnabas Jovanovics Date: Mon, 1 Jul 2024 11:10:16 +0200 Subject: [PATCH] fix: use checked constraints --- lib/resource/resource.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resource/resource.ex b/lib/resource/resource.ex index 1e7dff5..b58777a 100644 --- a/lib/resource/resource.ex +++ b/lib/resource/resource.ex @@ -4160,7 +4160,7 @@ defmodule AshGraphql.Resource do else if Spark.implements_behaviour?(type, Ash.Type.Enum) do if function_exported?(type, :graphql_type, 1) do - type.graphql_type(attribute.constraints) + type.graphql_type(constraints) else :string end