Commit graph

401 commits

Author SHA1 Message Date
Zach Daniel
ab4276174b improvement: update to latest igniter functions & dependency 2024-09-10 13:47:44 -04:00
Zach Daniel
789711f658 fix: add UUIDv7 to map the type to :id 2024-09-09 12:18:00 -04:00
Zach Daniel
c541d83220 fix: append new domain to list when extending 2024-08-26 16:15:56 -04:00
Zach Daniel
29cf2d69fc chore: skip sobelow errors 2024-08-16 14:41:03 -04:00
Zach Daniel
097ea273a9 chore: don't do codegen by default 2024-08-16 14:39:41 -04:00
Zach Daniel
3d1babb9f1 improvement: add schema codegen features & guide 2024-08-16 14:36:49 -04:00
Zach Daniel
f349a5aeaa improvement: support new struct types in type generation 2024-08-09 17:42:24 -04:00
Zach Daniel
190a7a1f75 improvement: support new struct fields constraint 2024-08-09 17:30:06 -04:00
Zach Daniel
dd5060f59a fix: match on action in error message properly 2024-08-06 20:47:14 -04:00
Rebecca Le
c3544dfe29
improvement: Set up GraphQL schema file in the web module namespace (#205)
This keeps consistency with AshJsonApi, which generates its router in the web module namespace as well
2024-08-03 09:49:55 -04:00
Zach Daniel
7845fe89d4 fix: use .has_expression?/0 instead of function_exported?/3 2024-08-02 12:16:21 -04:00
Kamil Kołodziej
b9e7848633
fix: error handling list of atoms (#204)
* fix: error handling list of atoms

* Update lib/default_error_handler.ex

---------

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-08-02 09:07:31 -04:00
Zach Daniel
232563b661 fix: try to resolve compilation issues w/ Code.ensure_compiled! 2024-08-01 15:58:35 -04:00
Jonatan Männchen
c67b9f5ab6
feat: Ash.Type.File compatibility (#202)
resolves #201
most of the code is adapted from 104b8c199c
2024-07-30 11:14:37 -04:00
Rebecca Le
3e5cf20023
bugfix: Fix check for checking if a field is filterable or not (#198) 2024-07-21 11:54:52 -04:00
Zach Daniel
36eac7bc54 chore: handle pkey-less resources at compile time 2024-07-19 17:41:42 -04:00
Zach Daniel
5823a3043f chore: remove empty file 2024-07-19 15:40:45 -04:00
Zach Daniel
1b8136212d chore: reintroduce work lost in a bad rebase 2024-07-18 13:32:25 -04:00
Zach Daniel
a659ff4693 improvement: add extension installation code 2024-07-18 13:30:29 -04:00
Rebecca Le
4f0d508a3e
chore: Wording tweaks to installer content (#193) 2024-07-16 06:03:36 -04:00
Zach Daniel
88735868cc chore: put playground above base 2024-07-15 20:46:03 -04:00
Zach Daniel
01ca76da70 improvement: add igniter-backed installer 2024-07-15 14:25:40 -04:00
Barnabas Jovanovics
d47ab78747
fix: use checked constraints (#187) 2024-07-01 09:25:38 -04:00
Zach Daniel
2a2af45230 improvement: add nullable_fields? for easily marking fields as nullable
test: update tests to use this to illustrate field policy behavior
2024-07-01 09:25:14 -04:00
Zach Daniel
53b3fbd699 chore: small reorg of functions 2024-07-01 08:39:56 -04:00
Zach Daniel
8d612a08bc chore: ensure managed relationship types are distinct on identifier 2024-06-22 12:29:36 -04:00
Zach Daniel
b1ab52959d fix: don't assume filter is non-nil for gets 2024-06-21 15:11:22 -04:00
Zach Daniel
0292ef1db8 improvement: only define managed_relationship mutations when necessary 2024-06-18 08:59:10 -04:00
Zach Daniel
eac844186a fix: properly interpolate action in conflict messages 2024-06-17 20:00:54 -04:00
Zach Daniel
e51bad36d5 chore: format 2024-06-17 09:21:13 -04:00
Barnabas Jovanovics
77f09b2422
fix: add resource query to action struct (#178) 2024-06-11 11:55:00 -04:00
Barnabas Jovanovics
8089164d74
feat: argument_input_types (#176)
* feat: argument_input_types

* use mix task to update formatter.exs

* update CheatSheet
2024-06-10 13:32:37 -04:00
Zach Daniel
b399d06a86 chore: use parens to remove warning in 1.17
closes #175
2024-06-10 09:10:34 -04:00
Zach Daniel
2aab03b0cc fix: better type handling around empty types 2024-06-04 09:24:31 -04:00
Zach Daniel
60f3fd8f99 fix: don't generate empty input objects for embeds 2024-06-04 00:49:17 -04:00
Zach Daniel
d49fc5a488 fix: honor read_action for update/destroy mutations
closes #169
2024-06-02 11:28:06 -04:00
Riccardo Binetti
62940c31ec
feat: relationship pagination (#166) 2024-05-26 09:50:54 -04:00
Zach Daniel
a6ca7fea67 feat: support queries/mutations on the domain 2024-05-24 15:51:19 -04:00
Riccardo Binetti
31d29e178f
improvement: deduplicate map types across domains (#164)
Allow having common NewType maps that are used in multiple domains and are
correctly deduplicated
2024-05-23 12:11:28 -04:00
Col
7ec1cfe84e
improvement: Implement AshGraphql.Error for Ash.Error.Query.ReadActionRequiresActor (#154) 2024-05-23 08:58:58 -04:00
Riccardo Binetti
2bc7b78aa6
fix: don't deduplicate argument types by argument name (#162)
As mentioned in the upgrade guide, the point of dropping auto generation of
types was avoiding conflicts when two arguments had the same name but different
types. Now that we require explicit generation, we can actually support that
usecase for, e.g., arguments with the same name but different types in
create/update mutations.
2024-05-23 08:58:25 -04:00
Barnabas Jovanovics
90df75015e
handle empty primary key (#160) 2024-05-21 08:14:23 -04:00
Barnabas Jovanovics
bf6ef37b8f
fix: use Ash.EmbeddableType.ShadowDomain (#156) 2024-05-14 06:16:56 -04:00
Zach Daniel
896d76420b fix: accepted attributes don't have to be public? 2024-05-11 18:25:23 -04:00
Zach Daniel
761a60f3b4 chore: add an experimental auto_import_types? option to use AshGraphql
this is to solve a very specific technical issue around conflicts with
using `import_types` on your schema, and having conflicts with a named type
you already have defined, and the types we import
2024-05-11 18:24:58 -04:00
Alan Heywood
7386a5b627
improvement: make mutation result errors list non-nullable (#144)
* chore: regenerate cheat sheets

* improvement: make mutation result errors list non-nullable
2024-05-03 21:57:02 -04:00
Josh Price
c015030dc5
docs: minor doc updates (#142) 2024-05-01 16:45:20 -04:00
Zach Daniel
0e79680681 docs: documentation overhaul 2024-05-01 15:59:38 -04:00
Riccardo Binetti
833c1d5143
feat: allow passing custom descriptions to queries and mutations (#138)
Close #137
2024-04-29 15:01:26 -04:00
Zach Daniel
019632c420 fix: properly set actor on bulk action calls 2024-04-27 09:27:00 -04:00