docs: minor doc updates

This commit is contained in:
Josh Price 2024-05-01 16:36:00 -04:00 committed by GitHub
parent f81cbeb22f
commit bea77c23c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ defmodule AshGraphql.Domain do
@graphql %Spark.Dsl.Section{
name: :graphql,
describe: """
Global configuration for graphql
Domain level configuration for GraphQL
""",
examples: [
"""
@ -47,7 +47,7 @@ defmodule AshGraphql.Domain do
@sections [@graphql]
@moduledoc """
The entrypoint for adding graphql behavior to an Ash domain
The entrypoint for adding GraphQL behavior to an Ash domain
"""
require Ash.Domain.Info

View file

@ -3,7 +3,7 @@ defmodule AshGraphql.Domain.Info do
alias Spark.Dsl.Extension
@doc "Wether or not to run authorization on this domain"
@doc "Whether or not to run authorization on this domain"
def authorize?(domain) do
Extension.get_opt(domain, [:graphql], :authorize?, true)
end
@ -16,12 +16,12 @@ defmodule AshGraphql.Domain.Info do
|> Enum.concat(List.wrap(Application.get_env(:ash, :tracer)))
end
@doc "Wether or not to surface errors to the root of the response"
@doc "Whether or not to surface errors to the root of the response"
def root_level_errors?(domain) do
Extension.get_opt(domain, [:graphql], :root_level_errors?, false, true)
end
@doc "An error handler for errors produced by domain"
@doc "An error handler for errors produced by the domain"
def error_handler(domain) do
Extension.get_opt(
domain,
@ -32,7 +32,7 @@ defmodule AshGraphql.Domain.Info do
)
end
@doc "Wether or not to render raised errors in the graphql response"
@doc "Whether or not to render raised errors in the GraphQL response"
def show_raised_errors?(domain) do
Extension.get_opt(domain, [:graphql], :show_raised_errors?, false, true)
end