docs: Add upgrade note about changing api -> domain (#124)

This commit is contained in:
Rebecca Le 2024-04-05 22:51:56 +08:00 committed by GitHub
parent 10fa6b2ff7
commit 261862948b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,3 +120,13 @@ managed_relationships do
managed_relationship :create, :comments, ignore?: true
end
```
## `Ash.Api` is now `Ash.Domain` in Ash 3.0
Your Absinthe schema file (ie. `MyApp.Schema`) will need all references to `api` updated to be `domain`. eg.
```elixir
@domains [MyApp.Domain1, MyApp.Domain2]
use AshGraphql, domains: @domains
```