mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 12:53:40 +12:00
chore: don't do codegen by default
This commit is contained in:
parent
3d1babb9f1
commit
097ea273a9
3 changed files with 10 additions and 6 deletions
|
@ -1,7 +1,13 @@
|
||||||
# Using the SDL File
|
# Using the SDL File
|
||||||
|
|
||||||
By passing the `generate_sdl_file` to `use AshGraphql.Schema`, AshGraphql will generate
|
By passing the `generate_sdl_file` to `use AshGraphql`, AshGraphql will generate
|
||||||
a schema file when you run `mix ash.codegen`.
|
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}
|
> ### Ensure your schema is up to date, gitignored, or not generated {: .info}
|
||||||
>
|
>
|
||||||
|
|
|
@ -43,8 +43,7 @@ defmodule Helpdesk.GraphqlSchema do
|
||||||
|
|
||||||
# Add your domains here
|
# Add your domains here
|
||||||
use AshGraphql,
|
use AshGraphql,
|
||||||
domains: [Your.Domains],
|
domains: [Your.Domains]
|
||||||
generate_sdl_file: "priv/schema.graphql"
|
|
||||||
|
|
||||||
query do
|
query do
|
||||||
# Custom absinthe queries can be placed here
|
# Custom absinthe queries can be placed here
|
||||||
|
|
|
@ -120,8 +120,7 @@ defmodule AshGraphql.Igniter do
|
||||||
use Absinthe.Schema
|
use Absinthe.Schema
|
||||||
|
|
||||||
use AshGraphql,
|
use AshGraphql,
|
||||||
domains: #{inspect(domains)},
|
domains: #{inspect(domains)}
|
||||||
generate_sdl_file: "priv/schema.graphql"
|
|
||||||
|
|
||||||
import_types Absinthe.Plug.Types
|
import_types Absinthe.Plug.Types
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue