Commit graph

123 commits

Author SHA1 Message Date
Zach Daniel
e1540e80c1 chore: release version v1.3.4 2024-09-10 13:47:59 -04:00
Franklin Rakotomalala
9178e7e7b2
docs: Use correct arity for graphql_type (#212) 2024-09-07 14:47:26 -04:00
Zach Daniel
090f554290 chore: release version v1.3.3 2024-08-26 16:18:12 -04:00
Zach Daniel
b3ebccf52b docs: add line about how the file is generated to docs 2024-08-16 14:56:30 -04:00
Zach Daniel
dfde245d5d chore: release version v1.3.2 2024-08-16 14:41:47 -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
4773f76636 chore: release version v1.3.1 2024-08-02 12:27:39 -04:00
Zach Daniel
5f269fc19c chore: release version v1.3.0 2024-08-01 16:09:40 -04:00
Barnabas Jovanovics
cedbfc341f
docs: Mention AshGraphl.Error Protocol in docs (#199) 2024-07-23 10:32:36 -04:00
Zach Daniel
1eca6bfe29 chore: release version v1.2.1 2024-07-18 17:40:08 -04:00
Zach Daniel
1f45a1481e docs: fix getting started guide steps ordering 2024-07-15 15:54:47 -04:00
Zach Daniel
01ca76da70 improvement: add igniter-backed installer 2024-07-15 14:25:40 -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
36cfde3378 chore: release version v1.2.0 2024-06-17 09:17:41 -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
ian knauer
409c99b88d
Update getting-started-with-graphql.md (#173) 2024-06-05 00:46:01 -04:00
Zach Daniel
30c49972f8 chore: release version v1.1.1 2024-06-02 11:29:27 -04:00
Riccardo Binetti
62940c31ec
feat: relationship pagination (#166) 2024-05-26 09:50:54 -04:00
Zach Daniel
3be2f32896 chore: release version v1.1.0 2024-05-24 15:59:24 -04:00
Zach Daniel
a6ca7fea67 feat: support queries/mutations on the domain 2024-05-24 15:51:19 -04:00
Zach Daniel
50d30bf9b2 chore: release version v1.0.1 2024-05-23 14:33:48 -04:00
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
Zach Daniel
8fbb2f4ee3 docs: revamp changelog 2024-05-08 18:56:25 -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
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
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
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
84b86e65be improvement: add graphql_define_type?/1 callback for graphql types 2024-04-24 09:21:26 -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
Rebecca Le
261862948b
docs: Add upgrade note about changing api -> domain (#124) 2024-04-05 10:51:56 -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
Zach Daniel
91e163ddfd chore: format markdown 2024-04-01 15:29:19 -04:00
Zach Daniel
349086fbb8 improvement!: No longer automagically derive types 2024-04-01 15:27:43 -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
Riccardo Binetti
9674614b62
feat: allow resources without types (#121)
* fix: regenerate spark formatter and cheatsheet

Make CI pass again

* feat: allow resources without types

Ensure they only expose generic action queries. Add checks to ensure that either
`type :resource_type` or `generate_object? false` is passed if it's needed.

Close #119
2024-03-28 11:16:32 -04:00
Dmitry Maganov
234f2d6d61
fix: add show_fields to spark_locals_without_parens in formatter (#122) 2024-03-28 10:54:28 -04:00
Riccardo Binetti
98baf6f0be
feat: allow providing descriptions for enum values (#117)
* chore: update ash to use Ash.Type.Enum descriptions

Contextually, remove an unreachable clause that caused dyalizer to fail,
see https://github.com/ash-project/ash/pull/873 for the commit that made
it unreachable

* feat: allow providing descriptions for enum values

If the module exports `graphql_describe_enum_value/1`, use that. Otherwise,
fallback to the Ash.Type.Enum value descriptions introduced in
https://github.com/ash-project/ash/pull/940.

Close #116
2024-03-25 23:43:59 -04:00