chore: don't do codegen by default

This commit is contained in:
Zach Daniel 2024-08-16 14:39:41 -04:00
parent 3d1babb9f1
commit 097ea273a9
3 changed files with 10 additions and 6 deletions

View file

@ -1,7 +1,13 @@
# Using the SDL File
By passing the `generate_sdl_file` to `use AshGraphql.Schema`, AshGraphql will generate
a schema file when you run `mix ash.codegen`.
By passing the `generate_sdl_file` to `use AshGraphql`, AshGraphql will generate
a schema file when you run `mix ash.codegen`. For example:
```elixir
use AshGraphql,
domains: [Domain1, Domain2],
generate_sdl_file: "priv/schema.graphql"
```
> ### Ensure your schema is up to date, gitignored, or not generated {: .info}
>

View file

@ -43,8 +43,7 @@ defmodule Helpdesk.GraphqlSchema do
# Add your domains here
use AshGraphql,
domains: [Your.Domains],
generate_sdl_file: "priv/schema.graphql"
domains: [Your.Domains]
query do
# Custom absinthe queries can be placed here

View file

@ -120,8 +120,7 @@ defmodule AshGraphql.Igniter do
use Absinthe.Schema
use AshGraphql,
domains: #{inspect(domains)},
generate_sdl_file: "priv/schema.graphql"
domains: #{inspect(domains)}
import_types Absinthe.Plug.Types