Riccardo Binetti
8fff0d361d
improvement: make mutation arguments non-null ( #111 )
...
* improvement: make mutation arguments non-null
As discussed in #105 and #110 , put this behind an opt-in configuration to avoid
breaking existing code.
The ID in update mutations is always non-null if non-null mutation arguments are
allowed, while input is non-null if it's allowed _and_ there is at least a
non-null field in the input.
Document the newly added config variable in the getting started guide.
* chore: enable non-null mutation arguments in tests
2024-01-31 17:52:01 -05:00
Zach Daniel
28f231f2e0
test: update tests
2023-06-02 13:54:09 -04:00
Zach Daniel
3cc3c32f45
improvement: add support for Ash.Type.NewType
2023-03-13 18:32:36 -04:00
Zach Daniel
f1d4c1a3cb
improvement: better tagged union handling
2023-02-16 23:33:54 -05:00
Zach Daniel
cf8267123e
improvement: support new union types in ash
2023-02-15 08:20:35 -05:00
Zach Daniel
9a3136fd5d
improvement: remove stacktraces?
option
...
improvement: add error handler
improvement: translatable error messages
docs: handle errors guide
2022-10-12 00:51:01 -04:00
Zach Daniel
93fc0c9ffd
chore: stop all ETS resources in tests
2022-09-28 02:28:44 -04:00
Zach Daniel
9095a5ae45
improvement: add attribute_types and attribute_input_types
...
improvement: require configuration of datetime types
2022-09-22 13:31:40 -04:00
Zach Daniel
1a9ca4f273
chore: remove IO.inspect
2022-07-21 10:28:35 -04:00
Zach Daniel
6b805777ae
test: test loading calculation on related belongs_to on create
2022-07-21 10:28:04 -04:00
Zach Daniel
862bfdd7b4
improvement: updates to handle the new registry changes
2022-01-31 14:55:14 -05:00
Zach Daniel
300858f418
fix: select in the new after_action hook, for calculations
2021-09-12 02:13:19 -04:00
Michael St Clair
05fc3dc01a
failing test for root errors ( #27 )
2021-09-12 01:02:08 -04:00
Zach Daniel
f9b1b75edc
feat: more configurable error behavior
...
added `root_level_errors?` and `show_raised_errors?`
2021-09-09 11:49:36 -04:00
Zach Daniel
c11ad2a6a4
WIP
2021-09-09 00:27:49 -04:00
Zach Daniel
d4f97febf5
improvement: support create/update metadata
2021-08-29 15:23:28 -04:00
Zach Daniel
dffe4de9f5
improvement: update to latest rc
...
improvement: add `short_message` and `vars` to errors
2021-06-28 13:33:01 -04:00
Zach Daniel
2422440da7
test: Added a test case to managed_relationship with a many_to_many resource ( #22 )
...
fix: fix compiler warning
Co-authored-by: Simon Bergström <simon.bergstrom@erlang-solutions.com>
2021-05-11 19:35:50 -04:00
Zach Daniel
019697578b
feat: derived input objects for managed_relationships
...
fix: various input fixes (sorts)
improvement: support new style enums
2021-04-23 18:45:31 -04:00
Zach Daniel
e302731d99
fix: project down to multiple levels for result
types
2021-04-18 23:19:46 -04:00
Zach Daniel
6be5c593cd
fix: proper not found errors
2021-04-16 13:49:51 -04:00
Zach Daniel
6ae8715a13
improvement: support upsert?: true
flag on create
2021-04-05 14:41:16 -04:00
Zach Daniel
9cde7df795
fix: fully remove relationship changes
2021-04-05 13:08:39 -04:00
Zach Daniel
c59658b1ff
chore: test enums, add a guide
2021-03-28 15:46:23 -04:00
Zach Daniel
004c69c291
feat: support custom types, add custom type test
2021-03-28 12:30:28 -04:00
Zach Daniel
9151b712f1
improvement: start on error messaging groundwork
...
fix: properly handle relationship changes on updates
2021-03-15 15:51:17 -04:00
Zach Daniel
fbfdb7faf8
feat: update to latest ash
...
feat: support query arguments
2021-01-21 23:06:06 -05:00
Zach Daniel
b7b229404c
improvement: support latest ash version
2021-01-07 22:07:50 -05:00
Zach Daniel
539bb14065
feat: filters as input objects
2020-12-29 15:11:16 -05:00
Zach Daniel
e433b57eda
fix: resolve testing compilation errors
2020-12-02 00:55:25 -05:00
Zach Daniel
210057d1c3
test: actually have a test :)
2020-12-02 00:07:15 -05:00