Commit Graph

2319 Commits

Author SHA1 Message Date
Ariel Mashraki
d7b3a6c4f4 ent: document ent.Value returned by mutations (#3556)
Fixed https://github.com/ent/ent/issues/3471
2023-05-23 14:54:18 +03:00
Ariel Mashraki
0aaaad6ccc entc/gen: fix conflicts between fields named 'op' and Mutation.Op (#3550) 2023-05-20 10:28:59 +03:00
Toshinori Sugita
0e29d0cf63 doc: update install instructions for atlas (#3526)
* fix-go-install-instruction

* Update _installation_instructions.mdx

Remove Go tab

* Update doc/md/components/_installation_instructions.mdx

* Update _installation_instructions.mdx
2023-05-17 23:11:02 +03:00
Ariel Mashraki
2924da5175 dialect/sql: expose the underyling builder of UpdateSet (#3541) 2023-05-16 00:00:56 +03:00
Giacomo Marinangeli
4231c8a98f doc: fix typo in migration plan (#3539)
Fix typo in docs: databaes into database
2023-05-15 17:28:59 +03:00
Ariel Mashraki
36553bbd8a entc/gen: avoid conflict between order by edge-count and fields end with _count (#3534) 2023-05-12 10:56:26 +03:00
Ariel Mashraki
dcb84d8a9f ent/privacy: move some of the generated privacy helpers to ent/privacy (#3527) 2023-05-07 17:52:09 +03:00
Ariel Mashraki
fc8d095da8 dialect/sql: add OrderByRand option (#3518) 2023-05-04 12:13:24 +03:00
Ariel Mashraki
f251400818 dialect/sql/schema: support passing schema diff options (#3516) 2023-05-03 11:28:10 +03:00
Ariel Mashraki
a792f429a6 dialect/sql/schema: allow ariga.io/atlas schema diff to be extended (#3514)
By not relying on the SchemaDiff signature, we allow the schema.Differ to be extended without introducing breaking changes to ent
v0.12.3
2023-05-01 17:14:17 +03:00
Ariel Mashraki
e04f07d447 examples: change atlas migrate lint command 2023-04-30 20:19:02 +03:00
Giau. Tran Minh
ae8465e703 .github/workflow: sync action (#3513)
* .github/workflow: sync action

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: fixed main branch

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

---------

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-05-01 00:04:08 +07:00
Ariel Mashraki
9c677e538f entc/load: report 'go mod' errors on schema loading (#3511) 2023-04-30 18:02:44 +03:00
Ariel Mashraki
98eba0c261 doc: add schema inspection to getting-started page (#3510) 2023-04-30 16:17:44 +03:00
Jannik Clausen
78c9c0d947 entc/gen/template: fix intercept package imports (#3507) 2023-04-28 16:26:17 +02:00
Jannik Clausen
af5ec59dbc Update graphql.md (#3506) 2023-04-28 10:02:21 +02:00
ASAKURA Kazuki
1c934c6ff5 doc/md/ci: fix broken link for ent/contrib/ci action's repo (#3504) 2023-04-26 23:53:05 +03:00
Ariel Mashraki
a675412c96 entc/gen: remoev unnecessary type arguments (#3503) 2023-04-25 13:46:29 +03:00
Ariel Mashraki
6198beb484 entc/gen: load referenced foreign-keys on eager-loading (#3497) v0.12.2 2023-04-20 17:26:37 +03:00
Giau. Tran Minh
f6de6bb2e0 .github/workflow: added atlas-ci for examples (#3496)
* .github/workflow: added atlas-ci for example

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: fixed dir path

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: test ci

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: update branch and add paths

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

---------

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-20 19:36:50 +07:00
Ariel Mashraki
bc7d8c936f dialect/sql/sqlgraph: replace id IN with EXISTS for HasNeighbors predicates (#3492) 2023-04-19 17:52:01 +03:00
Ariel Mashraki
0508677ce7 cmd/ent: hide the --idtype flag from generate command (#3490)
The --idtype flag predates the field.<Type>(id) option.
See, https://entgo.io/docs/schema-fields\#id-field.
2023-04-18 15:54:14 +03:00
Ariel Mashraki
0d1257f5f2 doc: add entgql edge ordering (#3482) v0.12.1 2023-04-16 11:13:46 +03:00
Ariel Mashraki
8cb27bc7cf dialect/sql: add method for finding selection occurrences in queries (#3473) 2023-04-12 23:22:52 +03:00
Ariel Mashraki
44b8648720 dialect/sql/sqlgraph: allow query edge fields with alias (#3470) 2023-04-11 13:55:04 +03:00
Ariel Mashraki
36cd6a8a8b dialect/sql: skip formatting qualified columns (#3469) 2023-04-11 13:16:40 +03:00
Ariel Mashraki
da69615bd0 entc/gen: rename <type>.Order to <type>.OrderOption (#3468)
Also, avoid generting predicate without op in case a field named: order_option
2023-04-11 08:23:29 +03:00
Ariel Mashraki
065cb9f9ff entc/gen: avoid ambiguous column names when joining the same table (#3461) 2023-04-10 06:29:17 +03:00
Giau. Tran Minh
36d16536ea doc/md: update doc for OnDelete annotation (#3460)
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-10 00:21:25 +07:00
Giau. Tran Minh
baaa22d018 entsql: added OnDelete annotation (#3459)
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-09 23:36:35 +07:00
Ariel Mashraki
bb30c098a2 doc: fix typos in paging.md (#3458) 2023-04-09 17:12:41 +03:00
Ariel Mashraki
ba51a5990e doc: change latest ent version (#3457) v0.12.0 2023-04-09 15:25:41 +03:00
Ariel Mashraki
5b1de3901a doc: update ordering fluent api (#3456) 2023-04-09 15:00:16 +03:00
Ariel Mashraki
064c9118b7 entc/gen: add fluent-api for order options (#3449) 2023-04-09 10:37:42 +03:00
Sasha Melentyev
6165bdea32 doc: update pgx version in example (#3451)
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
2023-04-08 18:17:39 +03:00
Rotem Tamir
00e9bba974 doc/md: update protoc plugin installation instructions (#3450) 2023-04-08 16:03:36 +03:00
Ariel Mashraki
02bb3269af dialect/sql: move order-by options to top-level driver package (#3446) 2023-04-07 00:35:20 +03:00
Yosep
b26c2fe1bc doc: fix typos in tutorial (#3445)
Co-authored-by: yoseplee <yoseplee@linecorp.com>
2023-04-06 12:50:36 +03:00
박세훈
5cc6ad65f9 readme : add korean language (#3443)
* readme : add korean language

* readme: change readme korean link
2023-04-05 22:58:17 +07:00
dependabot[bot]
648260780e build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#3442)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 17:27:48 +03:00
Ariel Mashraki
0e7203655e dialect/sql/sqlgraph: allow selecting order by terms (#3439) 2023-04-04 14:00:35 +03:00
Ariel Mashraki
4c332f7bba doc/features: add dynamic values support (#3436) 2023-04-03 17:55:28 +03:00
Ariel Mashraki
ba7f158a9c entc/gen: allow scanning dynamic sql values (#3432) 2023-04-03 17:07:24 +03:00
Ariel Mashraki
6065db39fa fix 2023-01-26-visualizing-with-entviz.md 2023-04-03 17:04:57 +03:00
Noam Cattan
d143432580 doc: replace diagram examples links (#3435)
* cmd/internal: fix help message for "new" command

* doc: replace example links
2023-04-03 16:38:57 +03:00
Rotem Tamir
e685413055 doc: slack channel links (#3433) 2023-04-03 11:00:34 +03:00
Ariel Mashraki
abafd91b2d dialect/sql: move columns check from codegen to sql package (#3431) 2023-04-02 13:57:21 +03:00
Ariel Mashraki
90289b7494 dialect/sql: additional predicate helpers (#3429) 2023-04-02 13:01:36 +03:00
Ariel Mashraki
27bc0470eb dialect/sql/sqlgraph: add Step helpers for edge types (#3428) 2023-04-01 21:34:42 +03:00
Ariel Mashraki
60bb939fc2 dialect/sql/sqlgraph: add function to order by edge terms (#3426) 2023-04-01 20:55:00 +03:00