ash_graphql/test/support
Riccardo Binetti 70eae5f421
fix: make results nullable again if root level errors are enabled (#114)
Building upon #110, this restores the old behaviour of the result being nullable
when root level errors are present.

While the result is guaranteed to not be nullable in standard conditions (since
either result or errors are always present), when errors are moved to the root
level it could become null, so declaring it non-nullable propagates the null up
to the data field.

This actually causes compatibility problems with some client libraries (e.g.
Relay) that expect the inner result to be null, _not_ data, if there's an error.

This also adds dedicated RootLevelErrors versions of the Api and the Schema
since the configuration is accessed at compile time now, so put_env was not
enough to test them correctly.
2024-02-09 09:36:23 -05:00
..
relay_ids feat: add Relay ID translation in mutation and queries (#109) 2024-02-06 09:46:09 -05:00
resources fix: make sure generic actions are authorized (#100) 2023-11-24 05:29:01 -05:00
types test: fix testing type 2023-09-13 15:52:46 -04:00
api.ex improvement: Implement GraphQL Relay support (#36) 2022-09-20 23:07:30 -04:00
embeds.ex improvement: revamp data loading to be a single load statement 2023-06-09 00:45:39 -04:00
force_change_id.ex improvement: support upsert?: true flag on create 2021-04-05 14:41:16 -04:00
registry.ex test: add new calculate union tests with real resources (#77) 2023-06-15 10:36:20 -04:00
root_level_errors_api.ex fix: make results nullable again if root level errors are enabled (#114) 2024-02-09 09:36:23 -05:00
root_level_errors_schema.ex fix: make results nullable again if root level errors are enabled (#114) 2024-02-09 09:36:23 -05:00
schema.ex improvement: generic action support 2023-09-15 13:45:12 -04:00
static_calculation.ex fix: select fields/aggregates/calculations 2021-03-22 13:03:18 -04:00
test_helpers.ex fix: fix Logger deprecations for elixir 1.15 (#79) 2023-06-22 17:38:24 -04:00