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
|
||||
|
||||
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}
|
||||
>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue