mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 12:53:40 +12:00
docs: Use correct arity for graphql_type (#212)
This commit is contained in:
parent
1e5ce3556f
commit
9178e7e7b2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@ defmodule MyApp.Types.Metadata do
|
|||
]
|
||||
]
|
||||
|
||||
def graphql_type, do: :metadata
|
||||
def graphql_type(_), do: :metadata
|
||||
end
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue