mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 21:03:09 +12:00
fix: use checked constraints
This commit is contained in:
parent
832b09a4dc
commit
dcdaef0226
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue