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
Barnabas Jovanovics
e6aadc1221
fix: always return a list from pkey_fields ( #59 )
2023-02-24 10:00:00 -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
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
a58f3c998e
fix: properly generate enum for atom attributes w/ one_of
constraint again
...
closes #49
2023-01-03 10:13:17 -05:00
Zach Daniel
48e6271d0d
fix: don't set mutation
block if no mutations exist
2022-11-01 21:58:41 -04:00
Zach Daniel
c650126819
fix: resolve issues compiling resources with no type
...
fix: adding an empty query block is apparently problematic?
2022-10-31 13:07:57 -04:00
James Harton
57e42cac6b
feat(AshGraphql.Plug): Support standard actor/tenant configuration. ( #43 )
2022-10-30 17:49:24 -04: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
c5662e90ba
improvement: validate that relay? queries use keyset?: true
actions
...
improvement: only add `count` to pages when one relevant query is countable
2022-10-21 07:38:33 -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
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
195ec3cd4f
fix: handle empty root query/root mutation blocks
...
closes : #10
2022-10-12 17:25:33 -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
e8486deaa3
chore: warning on errors when stopping storage in test
2022-09-28 02:48:08 -04:00
Zach Daniel
53ee24a89d
chore: fix linter
2022-09-28 02:32:55 -04:00
Zach Daniel
93fc0c9ffd
chore: stop all ETS resources in tests
2022-09-28 02:28:44 -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
5823d70889
chore: solve for module dependency issues
2022-09-20 18:24:36 -04:00
Zach Daniel
378892e387
improvement: support latest ash
2022-09-14 12:46:12 -04:00
Zach Daniel
f4cb9213b3
update to latest ash
2022-08-30 19:08:16 -06:00
Zach Daniel
6b805777ae
test: test loading calculation on related belongs_to on create
2022-07-21 10:28:04 -04:00
Zach Daniel
c5d3531945
chore: fix test using incorrect action types
2022-05-28 21:41:00 -04:00
Zach Daniel
c54bcdfdda
chore: fix tests
2022-05-28 21:19:11 -04:00
Frank Dugan III
13c2abe11a
feat: add policy breakdowns option ( #35 )
2022-05-24 16:42:40 -04:00
Zach Daniel
96f3a63b74
fix: update to latest ash, fix transformer, get tests working
2022-05-17 12:30:19 -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
d00e0a6e5d
improvement: require registry explicitly to help with compile times
2022-05-10 11:49:19 -04:00
Michael St Clair
6fb99a3ab0
improvement: setup generate_object? setting on resource ( #32 )
2022-05-09 21:53:01 -04:00
Zach Daniel
8ed9938201
improvement: fix lint/credo/versions
2022-04-26 11:35:09 -04:00
Zach Daniel
5d35cf092e
fix: ignore embedded resources accidentally placed in API
2022-03-25 13:17:35 -04:00
Zach Daniel
553152abef
test: added some test resources to reproduce an issue with duplicated Graph… ( #30 )
...
Co-authored-by: Simon Bergström <simon@menuan.se>
2022-03-24 21:20:01 -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
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
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
Simon Bergström
70bdcf3216
test: add a test to demonstrate an issue with soft deletes in GraphQL ( #24 )
2021-05-21 10:43:54 -04:00
Zach Daniel
04de3decad
chore: fix lint
2021-05-18 14:19:54 -04:00
Zach Daniel
31bcf8039e
fix: traverse all nested embeds for enum type defs
2021-05-18 14:07: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
WolfDan
c530245295
improvement: Add float type ( #20 )
2021-05-05 16:15:01 -04:00
Zach Daniel
405264911c
fix: properly support limit/offset on relationships
2021-05-04 09:31:39 -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
4f71d69c5d
improvement: support read_action
config for updates and destroys
...
improvement: support `identity: false` for udpates and destroys
2021-04-19 15:26:20 -04:00
Zach Daniel
43dae2ad28
fix: don't clear fields on nil
result
...
chore: add tests for destroy
2021-04-16 12:56:29 -04:00
Zach Daniel
1f098c5fa1
fix: load fields required for relationship
2021-04-15 16:28:04 -04:00
Zach Daniel
6ae8715a13
improvement: support upsert?: true
flag on create
2021-04-05 14:41:16 -04:00
Michael St Clair
b97e81bc9e
improvement: add allow_nil? to queries ( #16 )
2021-04-05 10:36:52 -04:00
Michael St Clair
596dc90381
feat: add read_one query ( #13 )
2021-04-04 03:10:50 -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
69f34ba55b
fix: select fields/aggregates/calculations
2021-03-22 13:03:18 -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
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