Zach Daniel
f259016455
improvement: support naive_datetime out of the box
2022-12-29 23:27:48 -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
689b0db421
improvement: update to new docs
2022-11-03 09:51:12 -07:00
Yousef Janajri
1985bfc497
improvement: Add Ash.Error.Changes.InvalidChanges AshGraphql implementation ( #46 )
2022-11-01 22:08:35 -04: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
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
b1bdc49ec5
fix: reference schema not generated module when adding types
2022-10-20 15:03:13 -04:00
Zach Daniel
75ba47215d
improvement: change calculation input type name
2022-10-13 00:53:23 -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
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
056e457522
improvement: support only exposing a subset of public relationships
2022-10-11 15:37:19 -04:00
Zach Daniel
7de4207de4
improvement: add upsert_identity
option
2022-10-09 21:05:58 -04:00
Zach Daniel
a873dfd685
fix: support determining a type for resource calculations
2022-10-03 12:00:28 -04:00
Zach Daniel
57f6315a9a
chore: raise on missing mutation
2022-09-29 15:38:38 -04:00
Zach Daniel
43c636253a
fix: raise error on missing query action
2022-09-29 15:29:21 -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
Zach Daniel
d859026ddb
fix: only create sort input if type is set
2022-09-21 16:28:20 -04:00
Maxim Martynov
e40e7c573c
improvement: Implement GraphQL Relay support ( #36 )
2022-09-20 23:07:30 -04:00
Zach Daniel
b2b9e22f7c
fix: don't generate duplicate types
2022-09-14 16:50:35 -04:00
Zach Daniel
378892e387
improvement: support latest ash
2022-09-14 12:46:12 -04:00
Zach Daniel
d70c68eed9
fix: error when selecting only the count for pagination
2022-09-12 12:23:58 -04:00
Zach Daniel
c3b63430f9
fix: reference proper modules in doc index
2022-08-30 19:33:11 -06: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
598e9c5616
improvement: handle Page.InvalidKeyset
error
2022-05-30 16:46:20 -04:00
Zach Daniel
29909742e2
chore: don't explicitly set type when looking up actions
2022-05-28 21:30:34 -04:00
Zach Daniel
c717ad1ade
chore: don't explicitly set type when validating action
2022-05-28 21:26:58 -04:00
Frank Dugan III
13c2abe11a
feat: add policy breakdowns option ( #35 )
2022-05-24 16:42:40 -04:00
Zach Daniel
0a241cb26e
fix: update to latest ash and use new interval type
2022-05-23 16:33:27 -04:00
Frank Dugan III
62c2e4fecb
fix: Types with no constraints crash ( #34 )
2022-05-20 12:32:06 -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
5e2b1bc16f
fix: depend on registry at compile time
2022-04-26 12:46:51 -04:00
Zach Daniel
4fb3c7d8c6
fix: bug on enum_definitions/3 call
2022-04-26 12:15:48 -04:00
Zach Daniel
8ed9938201
improvement: fix lint/credo/versions
2022-04-26 11:35:09 -04:00
Zach Daniel
a8aa57e0f5
fix: add relay node type properly
2022-04-04 16:55:22 -04:00
Zach Daniel
5d35cf092e
fix: ignore embedded resources accidentally placed in API
2022-03-25 13:17:35 -04:00
Zach Daniel
34bc363cf5
Revert "improvement: only do auto enums when doing resource types"
...
This reverts commit 64ef3efb52
.
2022-03-24 18:53:46 -04:00
Zach Daniel
64ef3efb52
improvement: only do auto enums when doing resource types
2022-03-24 18:47:56 -04:00
Zach Daniel
fdee19c3a5
fix: don't include the same enum multiple times
2022-03-24 17:05:53 -04:00
Zach Daniel
191b9b2d80
fix: properly generate types for interval
type
2022-01-31 15:06:06 -05:00
Zach Daniel
862bfdd7b4
improvement: updates to handle the new registry changes
2022-01-31 14:55:14 -05:00
Michael St Clair
2348d97534
fix: pass calculation to field type ( #29 )
2021-10-08 15:59:06 -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
d2d8f199f7
fix: search for types in calculations
2021-09-07 17:06:20 -04:00
Zach Daniel
5dfff6a9a2
fix: if no primary key (only embeds support that), don't require id
2021-09-03 14:44:55 -04:00
Zach Daniel
4b78323550
fix: more non null primar keys!
2021-09-03 13:42:00 -04:00
Zach Daniel
91a457ed2e
improvement: more non null constraints
2021-09-03 13:30:47 -04:00
Zach Daniel
50a3a1ccda
fix: make primary key attributes appropriately non nil
2021-09-03 13:04:52 -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
476888717a
improvement: support latest ash
2021-07-04 16:44:36 -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
Zach Daniel
dffe4de9f5
improvement: update to latest rc
...
improvement: add `short_message` and `vars` to errors
2021-06-28 13:33:01 -04:00
Zach Daniel
b313618d3a
fix: include new custom type
2021-06-21 17:20:24 -04:00
Zach Daniel
5e593ec40c
improvement: old json -> json_string
...
improvement: new json does not stringify outpu
2021-06-15 11:16:10 -04:00
Zach Daniel
020ad849ea
improvement: add modify_resolution
for mutations
2021-06-14 12:08:26 -04:00
Zach Daniel
d86e60ec68
fix: catch error in `massage_filter/2
2021-06-08 17:37:59 -04:00
Zach Daniel
0cc81ce9f6
improvement: support expression calculations
2021-06-04 15:07:12 -04:00
Zach Daniel
0aa2787d52
improvement: support identity: false
for read
...
improvement: don't type embedded resources is nullable
2021-05-22 23:49:31 -04:00
Zach Daniel
053cef4a65
fix: destroys can still have input objects
2021-05-21 10:56:10 -04:00
Zach Daniel
23094215ef
fix: avoid dialyzer errors on generated code
2021-05-19 01:29:57 -04:00
Zach Daniel
31bcf8039e
fix: traverse all nested embeds for enum type defs
2021-05-18 14:07:01 -04:00
Zach Daniel
3f0aab37e2
improvement: non nullable aggregates where possible
2021-05-15 12:03:58 -04:00
Zach Daniel
2f31650899
fix: don't load fields if no fields to load
2021-05-14 13:08:25 -04:00
Zach Daniel
77bf8788f5
improvement: log error stacktraces
2021-05-14 12:31:12 -04:00
Zach Daniel
8945851fd1
improvement: add stacktraces?
option
2021-05-14 12:25:43 -04:00
Zach Daniel
84ca2e7125
chore: format
2021-05-12 06:49:08 -04:00
Simon Bergström
c222e8088a
fix: Check for nil rather than the value as not
does not accept a function ( #23 )
...
Co-authored-by: Simon Bergström <simon.bergstrom@erlang-solutions.com>
2021-05-12 06:48:58 -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
Zach Daniel
3215bdbe12
fix: identities -> lookup_identities
2021-05-11 17:36:09 -04:00
Zach Daniel
aed4306fb9
fix: don't require attributes that should not be required
2021-05-11 17:27:26 -04:00
Zach Daniel
5ecf8bf838
improvement: allow customizing identity/pkey on_lookup
2021-05-11 12:12:28 -04:00
Zach Daniel
b8ca64590f
fix: support soft destroys
...
fix: support actions with no input objects
2021-05-10 02:19:47 -04:00
Zach Daniel
83e0e604a7
improvement: support eliding a type from an input object
2021-05-06 17:22:48 -04:00
WolfDan
c530245295
improvement: Add float type ( #20 )
2021-05-05 16:15:01 -04:00
Zach Daniel
5a1df9f95a
fix: ensure api modules are properly compiled first
2021-05-05 14:50:03 -04:00
Zach Daniel
06d674aac6
fix: don't have leaky errors
...
fix: support filtering on aggregates in nested resolvers
2021-05-04 13:01:15 -04:00