mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
docs: update upgrade guide
This commit is contained in:
parent
99153144c7
commit
c90241fde2
1 changed files with 2 additions and 2 deletions
|
@ -367,11 +367,11 @@ end
|
|||
|
||||
### `private?: true` -> `public?: true`
|
||||
|
||||
There is no longer a `private?` option for attributes, relationships, calculations and aggregates. Instead of attributes defaulting to `private?: false`, they now default to `public?: false`. It was too easy to add an attribute and not realize that you had exposed it over your api. One
|
||||
There is no longer a `private?` option for attributes, relationships, calculations and aggregates. Instead of attributes defaulting to `private?: false`, they now default to `public?: false`. It was too easy to add an attribute and not realize that you had exposed it over your api.
|
||||
|
||||
#### What you'll need to change
|
||||
|
||||
If you are using api extensions (i.e `AshGraphql` and `AshJsonApi`), you will need to go to your resources and "invert" the definitions. i.e _remove_ `private?: true` and _add_ `public?: true` to _every other_ attribute.
|
||||
If you are using api extensions (i.e `AshGraphql` and `AshJsonApi`), you will need to go to your resources and "invert" the definitions. i.e _remove_ `private?: true` and _add_ `public?: true` to _every other_ attribute, _relationship_ and _calculation_. Don't forget the relationships and calculations!
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue