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
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
Zach Daniel
3be18011ea
chore: fix CI from last commit
2022-10-20 17:57:37 -04:00
Zach Daniel
07e0c6170c
improvement: split keyset_page_of
and page_of
types
...
improvement: add `start_keyset` and `end_keyset` to `keyset_page_of` type
improvement: add `count` to relay fields if there exists a countable relay query
2022-10-20 17:57:27 -04:00
Zach Daniel
9cc9da0f2e
improvement: support calculation sort input
...
closes #31
2022-10-12 21:15:42 -04:00
Zach Daniel
3a11d988ab
improvement: support encode_primary_key? false
, and set single managed relationship primary keys do :id
type when its true
...
closes #28
2022-10-12 19:02:04 -04:00
Zach Daniel
8d79fd7d2a
fix: non relay keyset pagination was broken when relay was introduced
2022-10-12 12:11:51 -04: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
7de4207de4
improvement: add upsert_identity
option
2022-10-09 21:05:58 -04:00
Zach Daniel
41ff7bf9aa
improvement: handle generated nil
filters better
2022-09-26 21:07:41 -04:00
Zach Daniel
92631f91b6
improvement: add options for remapping field/argument names
...
fix: use the dataloader for loading calculations, to allow for aliases
2022-09-26 00:12:10 -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
Maxim Martynov
e40e7c573c
improvement: Implement GraphQL Relay support ( #36 )
2022-09-20 23:07:30 -04:00
Zach Daniel
d70c68eed9
fix: error when selecting only the count for pagination
2022-09-12 12:23:58 -04:00
Zach Daniel
f4cb9213b3
update to latest ash
2022-08-30 19:08:16 -06:00
Zach Daniel
a10f61b9b4
improvement: update to latest ash
2022-08-10 17:34:13 -04:00
Zach Daniel
29909742e2
chore: don't explicitly set type when looking up actions
2022-05-28 21:30:34 -04:00
Maxim Martynov
cc5f3a31f2
fix: Handle error if multitenant resource was fetched without tenant being set ( #33 )
2022-05-11 12:45:49 -04:00
Zach Daniel
bdf814cae2
fix: fix get
resolver not_found message
2021-09-13 16:55:03 -04:00
Zach Daniel
2632e477b3
fix: authorize reads before destroy
...
fix: return error when get is nil w/ allow_nil? == false
2021-09-12 16:39:48 -04: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
ffa7d3efdd
fix: fix changeset.errors on destroy ( #26 )
2021-09-11 15:18:38 -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
d8a3e1b155
improvement: add groundwork for relay support
2021-08-03 18:56:08 -04:00
Zach Daniel
d4a7012d6e
fix: set actor on initial read of record for update
2021-07-30 17:05:22 -04:00
Zach Daniel
6c92a23040
improvement: update to latest ash
2021-07-01 22:59:16 -04:00
Zach Daniel
3a0b0c3f83
improvement: add as_mutation
for queries
...
improvement: support `modify_resolution` for queries
2021-06-29 12:17:33 -04:00