ash_graphql/lib
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
..
api improvement: make the items of fields and errors non-null (#112) 2024-01-31 17:52:33 -05:00
graphql feat: add Relay ID translation in mutation and queries (#109) 2024-02-06 09:46:09 -05:00
resource fix: make results nullable again if root level errors are enabled (#114) 2024-02-09 09:36:23 -05:00
types improvement: update to new docs 2022-11-03 09:51:12 -07:00
ash_graphql.ex feat: Relay refetching support (#106) 2024-01-24 14:59:12 -05:00
context_helpers.ex improvement: thread context from PlugHelpers.get_context through to Query and Changeset (#62) 2023-04-05 10:39:12 -04:00
default_error_handler.ex
error.ex feat: Relay refetching support (#106) 2024-01-24 14:59:12 -05:00
plug.ex improvement: thread context from PlugHelpers.get_context through to Query and Changeset (#62) 2023-04-05 10:39:12 -04:00
subscriptions.ex feat: Relay refetching support (#106) 2024-01-24 14:59:12 -05:00
trace_helpers.ex improvement: support ash tracers and telemetry in graphql 2022-11-22 13:27:53 -05:00
type.ex fix: fix dialyzer types for AshGraphql.Type 2023-12-04 18:29:30 -05:00