Commit graph

49 commits

Author SHA1 Message Date
Zach Daniel
bced6021af chore: remove incorrect guide 2024-05-13 13:24:38 -04:00
Zach Daniel
880d400fdb chore: release version 1.0.0 2024-05-10 17:43:44 -04:00
Josh Price
d223372496
Update getting-started-with-graphql.md (#141)
Consistency pass
2024-05-01 16:13:32 -04:00
Zach Daniel
0e79680681 docs: documentation overhaul 2024-05-01 15:59:38 -04:00
Zach Daniel
f81cbeb22f chore: release version v1.0.0-rc.5 2024-04-27 09:28:46 -04:00
Zach Daniel
89202fba24 chore: release version v1.0.0-rc.4 2024-04-26 03:39:27 -04:00
Zach Daniel
0594c63c2b docs: shuffle around module concat recommendation 2024-04-12 15:17:38 -04:00
Zach Daniel
e9b4d77e91 chore: fix docs link 2024-04-12 15:15:44 -04:00
Zach Daniel
05e5ca3e1a chore: add Module.concat to the docs 2024-04-12 15:12:48 -04:00
Zach Daniel
35f35e4468 chore: release version v1.0.0-rc.3 2024-04-11 13:13:28 -04:00
Zach Daniel
80534862a4 docs: update getting started guide 2024-04-11 11:48:09 -04:00
Zach Daniel
777544a881 chore: release version v1.0.0-rc.2 2024-04-11 10:21:12 -04:00
Zach Daniel
fdfec3b210 chore: remove backwards compatibility config for 3.0 2024-04-04 21:35:00 -04:00
Zach Daniel
e364ff4115 chore: release version v1.0.0-rc.1 2024-04-02 12:31:17 -04:00
Zach Daniel
8f6c728232 chore: release version v1.0.0-rc.0 2024-04-01 16:02:59 -04:00
Zach Daniel
180d05545c improvement!: auto? managed_relationships by default
imporovement!: remove deprecated configuration
2024-04-01 16:02:30 -04:00
Riccardo Binetti
513c1ac68f
improvement!: port AshGraphql to Ash 3.0 (#123)
Step 1: update Ash

Step 2: mass rename Api to Domain

Step 3: Ash.Query.expr -> Ash.Expr.expr

Also change ref interpolation

Step 4: remove all warnings

Step 5: remove registries from tests

Step 6: fix filter

Step 7: private? -> !public?

Step 8: Ash.Calculation -> Ash.Resource.Calculation

Step 9: use depend_on_resources/1 -> resources/1

Step 10: add Domain to all resources

Step 11: use Ash module for all actions

Step 12: add public? true all around

Step 13: remove verbose? from options passed during Domain calls

Step 14: add simple_sat

Step 15: Ash.ErrorKind is no more, so remove code from errors

Step 16: sprinkle default_accept :* around tests

Step 17: replace Ash.Changeset.new/2 with Ash.Changeset.for_*

Step 18: calculation fixups

- Context is now a struct and arguments go under the arguments key
- Function based calculations receive a list of records
- Add a select to query-based loads
- select -> load

Step 19: pass the correct name to pass the policy in tests

Step 20: Ash.Query.new/2 is no more

Step 21: add AshGraphql.Resource.embedded? utility function

Use that instead of Ash.Type.embedded_type?(resource_or_type) since resources
are not types anymore

Step 22: handle struct + instance_of: Resource in unions

Resources are not type anymore so they need to be passed this way in unions

Step 23: ensure we only check GraphQL actions for pagination

All reads are now paginated by default, so this triggered a compilation error

Step 24: swap arguments for sort on calculations

Step 25: remove unused debug? option
2024-04-01 14:03:06 -04:00
Zach Daniel
9f0ed5ed7e chore: release version v0.28.0 2024-03-30 17:38:35 -04:00
Zach Daniel
f895d2910b chore: release version v0.27.1 2024-03-11 12:23:16 -04:00
Zach Daniel
4c1f8a2d1a chore: release version v0.27.0 2024-02-12 19:47:06 -05:00
Riccardo Binetti
8fff0d361d
improvement: make mutation arguments non-null (#111)
* improvement: make mutation arguments non-null

As discussed in #105 and #110, put this behind an opt-in configuration to avoid
breaking existing code.
The ID in update mutations is always non-null if non-null mutation arguments are
allowed, while input is non-null if it's allowed _and_ there is at least a
non-null field in the input.

Document the newly added config variable in the getting started guide.

* chore: enable non-null mutation arguments in tests
2024-01-31 17:52:01 -05:00
Zach Daniel
840230c110 chore: release version v0.26.9 2024-01-12 14:34:33 -05:00
Zach Daniel
896d5c8df3 chore: release version v0.26.8 2023-12-04 18:29:53 -05:00
Zach Daniel
a5583ff8dc chore: release version v0.26.7 2023-11-24 05:39:03 -05:00
Jake Demarest-Mays
0e4ac7130c
docs: Removed mention of Context and Dataloader in Getting Started with Graphql (#96) 2023-10-12 11:24:47 -04:00
Zach Daniel
65778a1e1f chore: release version v0.26.6 2023-10-06 13:52:54 -04:00
Zach Daniel
d485f5378f chore: release version v0.26.5 2023-10-02 14:52:51 -04:00
Zach Daniel
07296a5ef5 chore: release version v0.26.4 2023-10-01 09:53:27 -04:00
Zach Daniel
46cd22db0d chore: release version v0.26.3 2023-09-28 17:31:54 -04:00
Zach Daniel
ec3b747667 chore: release version v0.26.2 2023-09-17 19:34:56 -04:00
Zach Daniel
96b202221f chore: release version v0.26.1 2023-09-15 13:53:37 -04:00
Zach Daniel
a7d89c14c5 chore: release version v0.26.0 2023-08-29 21:32:47 -04:00
Zach Daniel
8f9e79e273 fix: pass arguments to related read action 2023-08-03 19:49:59 -04:00
Zach Daniel
8e898e7003 chore: no need for absinthe_plug dependency 2023-07-31 15:17:10 -04:00
Zach Daniel
178ea6c7e3 chore: lock/guide/tool versions 2023-07-31 15:13:23 -04:00
Zach Daniel
997c80b526 chore: add back in dataloader to not break existing apps 2023-06-09 16:14:23 -04:00
Zach Daniel
e4dda5a3d9 improvement: don't add types for resources w/o a GQL type
docs: add config to getting started
2023-03-21 23:06:58 -04:00
Zach Daniel
4ad72e0ee1 docs: add AshGraphql.Plug to getting started guide 2023-03-20 01:00:58 -04:00
Moxley Stratton
57a05efe75
doc: GraphQL Generation topic (#58) 2023-02-20 11:52:47 -05:00
Zach Daniel
2a9baf8164 docs: update getting started guide to be clearer
We also properly link to and continue from the Ash getting started guide
2023-01-29 19:03:59 -05:00
Rebecca Le
5e87c52f9b
docs: Fix minor typos in headings (#53) 2023-01-23 22:42:11 -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
Zach Daniel
fe079a55d9 docs: update getting started guide 2022-10-21 08:53:39 -04:00
Zach Daniel
1b11834afb docs: remove out of date docs 2022-10-12 23:02:51 -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
4fe356ce71 chore: docs improvement 2022-09-06 18:24:02 -04:00
Zach Daniel
1dc73b5438 chore: rename guide 2022-08-30 19:41:08 -06:00
Zach Daniel
f4cb9213b3 update to latest ash 2022-08-30 19:08:16 -06:00