docs: Use correct arity for graphql_type (#212)

This commit is contained in:
Franklin Rakotomalala 2024-09-07 20:47:26 +02:00 committed by GitHub
parent 1e5ce3556f
commit 9178e7e7b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -18,7 +18,7 @@ defmodule MyApp.Types.Metadata do
]
]
def graphql_type, do: :metadata
def graphql_type(_), do: :metadata
end
```