Packages

The extension for building GraphQL APIs with Ash

Current section

Files

Jump to
ash_graphql lib doc_index.ex
Raw

lib/doc_index.ex

defmodule AshGraphql.DocIndex do
@moduledoc false
use Spark.DocIndex,
otp_app: :ash_graphql,
guides_from: [
"documentation/**/*.md"
]
@impl true
def for_library, do: "ash_graphql"
@impl true
def extensions do
[
%{
module: AshGraphql.Resource,
name: "AshGraphql Resource",
target: "Ash.Resource",
type: "GraphQL Resource"
},
%{
module: AshGraphql.Api,
name: "AshGraphql Api",
target: "Ash.Api",
type: "GraphQL Api"
}
]
end
@impl true
def code_modules do
[
{"Introspection",
[
AshGraphql.Resource.Info,
AshGraphql.Api.Info
]}
]
end
end