Commit graph

730 commits

Author SHA1 Message Date
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
dependabot[bot]
7e2fbb0358
chore(deps): bump ash from 3.0.13 to 3.0.15 (#183)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.13 to 3.0.15.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.13...v3.0.15)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 22:00:48 -04:00
Zach Daniel
0292ef1db8 improvement: only define managed_relationship mutations when necessary 2024-06-18 08:59:10 -04:00
dependabot[bot]
5892cf5c1d
chore(deps): bump ash from 3.0.12 to 3.0.13 (#182)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.12 to 3.0.13.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.12...v3.0.13)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 20:51:21 -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
Zach Daniel
36cfde3378 chore: release version v1.2.0 2024-06-17 09:17:41 -04:00
dependabot[bot]
1a8047775a
chore(deps): bump ash from 3.0.11 to 3.0.12 (#181)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.11 to 3.0.12.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.11...v3.0.12)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-16 21:16:32 -04:00
dependabot[bot]
1fd1a9fba7
chore(deps-dev): bump credo from 1.7.6 to 1.7.7 (#180) 2024-06-12 21:11:34 -04:00
dependabot[bot]
c023019811
chore(deps): bump ash from 3.0.10 to 3.0.11 (#179)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.10 to 3.0.11.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.10...v3.0.11)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 21:37:58 -04:00
Barnabas Jovanovics
77f09b2422
fix: add resource query to action struct (#178) 2024-06-11 11:55:00 -04:00
Davide Briani
18d4e1b010
test: add tests on paginated relationships (#177)
Add tests to verify that relationships can be queried on the results of
GraphQL queries and mutations.

Querying paginated relationships on the result of deletions doesn't
correctly work yet.
Indeed, Ash currently queries relationships using a lateral join but
after the resource deletion has happened, so it looks like nothing is
related.

Signed-off-by: Davide Briani <davide@briani.dev>
2024-06-11 09:49:05 -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
dependabot[bot]
3f88288c00
chore(deps): bump ash from 3.0.9 to 3.0.10 (#174)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.9 to 3.0.10.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.9...v3.0.10)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 14:02:37 -04:00
ian knauer
409c99b88d
Update getting-started-with-graphql.md (#173) 2024-06-05 00:46:01 -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
dependabot[bot]
5ea72c5114
chore(deps): bump ash from 3.0.8 to 3.0.9 (#171)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.8 to 3.0.9.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.8...v3.0.9)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 08:47:33 -04:00
Zach Daniel
30c49972f8 chore: release version v1.1.1 2024-06-02 11:29:27 -04:00
Zach Daniel
d49fc5a488 fix: honor read_action for update/destroy mutations
closes #169
2024-06-02 11:28:06 -04:00
Zach Daniel
4ff56a3c59
Add test for mutation with read action in simple data layer resource issue (#170)
Co-authored-by: Junil Chon <jichon@gmail.com>
2024-06-02 08:08:46 -04:00
dependabot[bot]
543fbeab7e
chore(deps): bump ash from 3.0.7 to 3.0.8 (#168)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.7 to 3.0.8.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.7...v3.0.8)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 20:33:16 -04:00
dependabot[bot]
6f5157bc55
chore(deps): bump ash from 3.0.6 to 3.0.7 (#167)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.6 to 3.0.7.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.6...v3.0.7)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-27 10:14:12 -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
dependabot[bot]
533a7ff7c8
chore(deps): bump ash from 3.0.4 to 3.0.6 (#165)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.4 to 3.0.6.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.4...v3.0.6)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 21:04:15 -04:00
Zach Daniel
14b49be9cf chore: update changelog 2024-05-23 14:34:00 -04:00
Zach Daniel
50d30bf9b2 chore: release version v1.0.1 2024-05-23 14:33:48 -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
dependabot[bot]
8fb6a4a830
chore(deps): bump ash from 3.0.2 to 3.0.4 (#161) 2024-05-22 21:18:24 -04:00
Barnabas Jovanovics
90df75015e
handle empty primary key (#160) 2024-05-21 08:14:23 -04:00
dependabot[bot]
6e5c5ec779
chore(deps): bump ash from 3.0.1 to 3.0.2 (#159)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.1 to 3.0.2.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 23:23:32 -05:00
Barnabas Jovanovics
1eb14c8079
fix typo (#158) 2024-05-15 09:49:56 -04:00
dependabot[bot]
74b214e06d
chore(deps): bump ash from 3.0.0 to 3.0.1 (#157)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.0 to 3.0.1.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/commits/v3.0.1)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14 21:42:12 -04:00
Barnabas Jovanovics
bf6ef37b8f
fix: use Ash.EmbeddableType.ShadowDomain (#156) 2024-05-14 06:16:56 -04:00
Zach Daniel
bced6021af chore: remove incorrect guide 2024-05-13 13:24:38 -04:00
Zach Daniel
8f04ef2e1e chore: set log level in dev 2024-05-13 12:43:13 -04:00
Barnabas Jovanovics
73e6974ea7
add test that shows problem with new auth field clean up (#153) 2024-05-13 08:18:15 -04:00
Zach Daniel
beaec883c1 chore: fix ISSUE template for bug report 2024-05-11 18:29:05 -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
dependabot[bot]
14ba578ca4
chore(deps-dev): bump credo from 1.7.5 to 1.7.6 (#149) 2024-05-11 01:58:58 -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
dependabot[bot]
6eb2bacc1d
chore(deps): bump ash from 3.0.0-rc.45 to 3.0.0-rc.46 (#148)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.0-rc.45 to 3.0.0-rc.46.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.0-rc.45...v3.0.0-rc.46)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 21:01:15 -04:00