diff --git a/documentation/topics/use-enums-with-graphql.md b/documentation/topics/use-enums-with-graphql.md index 26bae3c..c84426d 100644 --- a/documentation/topics/use-enums-with-graphql.md +++ b/documentation/topics/use-enums-with-graphql.md @@ -11,7 +11,7 @@ defmodule AshPostgres.Test.Types.Status do @moduledoc false use Ash.Type.Enum, values: [:open, :closed] - def graphql_type, do: :ticket_status + def graphql_type(_), do: :ticket_status # Optionally, remap the names used in GraphQL, for instance if you have a value like `:"10"` # that value is not compatible with GraphQL diff --git a/documentation/topics/use-maps-with-graphql.md b/documentation/topics/use-maps-with-graphql.md index e2882fb..0364fdf 100644 --- a/documentation/topics/use-maps-with-graphql.md +++ b/documentation/topics/use-maps-with-graphql.md @@ -18,7 +18,7 @@ defmodule MyApp.Types.Metadata do ] ] - def graphql_type, do: :metadata + def graphql_type(_), do: :metadata end ```