Zach Daniel
1950581f83
chore: attempt to fix an issue w/ incorrect action call
2023-09-17 19:17:13 -04:00
Zach Daniel
49c6534d73
improvement: generic action support
...
docs: better docs
2023-09-15 13:45:12 -04:00
Zach Daniel
8f9e79e273
fix: pass arguments to related read action
2023-08-03 19:49:59 -04:00
Zach Daniel
fe85aab53a
fix: properly display forbidden field errors
...
fixes #84
2023-07-13 09:23:17 -04:00
Zach Daniel
d2f1f321f6
fix: handle detection of fields nested in aliases
2023-06-23 10:53:24 -04:00
Zach Daniel
bb96354470
improvement: support ForbiddenField
2023-06-23 10:10:39 -04:00
Alan Heywood
1c9c173631
fix: fix Logger deprecations for elixir 1.15 ( #79 )
...
Use Logger.warning instead of Logger.warn, which is deprecated
2023-06-22 17:38:24 -04:00
Zach Daniel
c70e7dec7d
improvement: use parse_input
for filters
2023-06-19 15:09:32 -04:00
Zach Daniel
1f6e87ff01
fix: properly resolve arrays of unions from calculations
2023-06-15 13:04:45 -04:00
Zach Daniel
102bf96221
improvement: use new can_load?/2
2023-06-12 16:59:05 -04:00
Zach Daniel
74211ef3f4
fix: properly fetch aliased all attributes
2023-06-12 13:19:07 -04:00
Zach Daniel
3570c477f0
improvement: finalize Subscription.query_for_subscription
args
2023-06-09 12:01:21 -04:00
Zach Daniel
087579a062
fix: fixes for resolvers
2023-06-09 10:19:31 -04:00
Zach Daniel
05be948204
improvement: revamp data loading to be a single load statement
2023-06-09 00:45:39 -04:00
Zach Daniel
0caf5365f7
improvement: use Ash.Changeset.load
2023-06-05 14:04:53 -04:00
Zach Daniel
a00c55c749
improvement: load calculations using Ash.Query.load
2023-06-05 10:41:36 -04:00
Zach Daniel
d8cf992370
improvement: set actor when building loaded read query
2023-06-04 16:09:55 -04:00
Zach Daniel
d8b73b56e4
fix: properly use primary read as default read_action
2023-05-22 16:20:46 -04:00
Zach Daniel
20ce8b505e
fix: properly thread read action arguments through on updates
2023-05-19 18:01:33 -04:00
Zach Daniel
db23b32552
fix: various problems with resolving unions in relationship changes
2023-05-17 22:41:24 -04:00
Zach Daniel
7e8c02343c
chore: remove inspect
2023-05-01 18:47:14 -04:00
Zach Daniel
cccac9034a
improvement: handle nil
values in union types
2023-05-01 18:38:58 -04:00
Zach Daniel
0a6051469f
chore: remove TODO
2023-04-23 07:03:26 -06:00
Zach Daniel
e91001e83f
improvement: better union type handling
...
still need to document this, but adding support for
`graphql_unnested_unions/1` on `NewType` defined unions.
This allows for lifting up union type values to not be nested under `value`
2023-04-21 01:12:20 -06:00
Alan Heywood
d89a14175c
improvement: support manual relationships ( #66 )
2023-04-13 01:42:45 -04:00
bcksl
31315db6f9
improvement: thread context from PlugHelpers.get_context
through to Query
and Changeset
( #62 )
2023-04-05 10:39:12 -04:00
Zach Daniel
8159e466e7
fix: properly handle nested argument casting
2023-03-21 16:15:25 -04:00
Zach Daniel
bad0357558
fix: only specify page
option if actions upports it
2023-03-20 10:10:49 -04:00
Zach Daniel
b8b5b61786
improvement: supply arguments to relationships on loading
2023-03-17 14:56:06 -04:00
Zach Daniel
3cc3c32f45
improvement: add support for Ash.Type.NewType
2023-03-13 18:32:36 -04:00
Zach Daniel
99a1bfcb8c
fix: don't raise on errors reading underlying record
2023-02-22 16:40:20 -05:00
Zach Daniel
4e3acbc87d
fix: typo on handle_arguments
2023-02-22 16:36:21 -05:00
Zach Daniel
7083a8363b
improvement: build inputs for the underlying get action
2023-02-22 16:25:21 -05:00
Zach Daniel
9d2dcc49d9
fix: never resolve an already resolved field
2023-02-22 13:18:19 -05:00
Zach Daniel
80c3755860
fix: don't run mutations when they've been resolved
2023-02-22 13:13:42 -05:00
Zach Daniel
4d08ea500f
fix: don't run resolvers if already been resolved
2023-02-20 12:48:32 -05: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
f40317f014
doc: add moduledocs for AshGraphql.Errors
2023-02-10 20:02:38 -05:00
Zach Daniel
913afc6d58
improvement: add AshGraphql.Errors.to_errors/3
2023-02-10 20:02:17 -05:00
Zach Daniel
7bb2387fb8
fix: don't try to get metadata out of an error
2023-02-10 11:34:25 -05:00
Zach Daniel
18e5f86fde
improvement: add more?
(as has_next_page
) to pagination info
2023-02-08 11:16:48 -05:00
Zach Daniel
f0836f18b6
improvement: support metadata on read actions
...
metadata on read actions is merged with the rest of the fields on the query, so must have a name unique from the attributes/calculations/aggregates.
The system will warn you if there is metadata on the underlying action that is being ignored, and will tell you how to fix it.
2023-01-28 12:32:21 -05:00
Zach Daniel
839bdcb126
improvement: unwrap forbidden errors, instead of reporting on the whole
2023-01-27 17:11:36 -05:00
Zach Daniel
36c70d2f93
improvement: log stacktraces on raised errors
2023-01-03 09:14:08 -05:00
Zach Daniel
5a6bc0cd1d
fix: show all errors on show_raised_errors
2022-12-13 17:47:58 -05:00
Zach Daniel
59cb6bae41
improvement: set error on tracer when an exception is raised
2022-12-09 23:22:42 -05:00
Zach Daniel
fcfad512c5
improvement: update to latest ash, fix incorrect behaviour
2022-11-25 14:28:48 -05:00
Zach Daniel
1b3f43391d
improvement: support ash tracers and telemetry in graphql
2022-11-22 13:27:53 -05:00
Zach Daniel
9ff395711e
improvement: handle keyset & offset pagination when combined on an action (by preferring keyset)
...
improvement: use new `depend_on_resources/` from Ash to remove the need for registry in schema
fix: various pagination fixes
2022-10-21 08:51:31 -04:00