Skip to content

Commit

Permalink
docs: Use correct arity for graphql_type (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
aifrak authored Sep 7, 2024
1 parent 1e5ce35 commit 9178e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/topics/use-enums-with-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion documentation/topics/use-maps-with-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule MyApp.Types.Metadata do
]
]

def graphql_type, do: :metadata
def graphql_type(_), do: :metadata
end

```
Expand Down

0 comments on commit 9178e7e

Please sign in to comment.