Commit Graph

545 Commits

Author SHA1 Message Date
dependabot[bot]
bd1a311e50 build(deps): bump trim from 0.0.1 to 0.0.3 in /doc/website (#2848)
Bumps [trim](https://github.com/Trott/trim) from 0.0.1 to 0.0.3.
- [Release notes](https://github.com/Trott/trim/releases)
- [Changelog](https://github.com/Trott/trim/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Trott/trim/compare/0.0.1...v0.0.3)

---
updated-dependencies:
- dependency-name: trim
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 22:27:45 +03:00
Rotem Tamir
cb01c2831f doc/md/ci: fix yaml (#2859) 2022-08-15 14:20:54 +03:00
Rotem Tamir
c53251cbf6 doc/md/ci: fix weird sentence (#2858) 2022-08-15 10:09:32 +03:00
Ariel Mashraki
6637cbf68e examples/migration: add doc about migration linting (#2856) 2022-08-15 09:45:36 +03:00
Rotem Tamir
94226c9093 doc: entci (#2853)
* doc: entci

* Update doc/md/ci.mdx

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update doc/md/ci.mdx

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update sidebars.js

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-08-14 18:22:39 +03:00
Ariel Mashraki
0350da3267 doc/md: add missing codereview comment (#2852) 2022-08-14 14:45:16 +03:00
Ariel Mashraki
01a4906931 doc/migration: improve versioned migration workflow example (#2851) 2022-08-14 14:42:11 +03:00
Ariel Mashraki
757fc94985 doc/md: trigger master build 2022-08-13 20:17:44 +03:00
Ariel Mashraki
8fc8d65a16 doc/fields: add section for nillable-required fields 2022-08-13 20:12:28 +03:00
Ariel Mashraki
0066eb986d entc/gen: extend sql/modify to UPDATE statements 2022-08-05 14:42:04 +03:00
Ariel Mashraki
c7de2ec511 doc/versioned-migration: add atlas import for code example (#2819) 2022-08-02 11:44:27 +03:00
gneyal
ea3aa8cf5b doc/md: remove entgql annotation from crud step (#2816) 2022-08-01 14:17:08 +03:00
Jeremy Maxey-Vesperman
3f04b0fe6e doc/md: update grpc tutorial for List and BatchCreate methods (#2518) 2022-07-31 09:12:15 +03:00
Ariel Mashraki
1ee2876349 doc/website: add edit and lastedit info to doc pages (#2800) 2022-07-25 18:32:36 +03:00
Ariel Mashraki
b9b502bc2a doc/schema-edges: fix annotation example (#2799) 2022-07-25 18:08:42 +03:00
Xin Hao
d4aa8b60d7 doc/website: using go install instead of go get (#2796) 2022-07-25 17:16:51 +03:00
Ariel Mashraki
31bc1a98fb doc/website: update version-migration with global ids (#2798) 2022-07-25 14:59:09 +03:00
Ariel Mashraki
b60e0f9eac entc/gen: add support for WithNamed<E> feature-flag (#2792)
* entc/gen: struct fields and methods for NamedEdge api

* entc/gen: generate WithNamedEdge methods for named-edges

* entc/gen: implement eager-loading for named-edges

* entc/gen: simplify eager-loading template

* entc/gen: drop support for unqiue edges in named-based loading

* all: codegen

* doc/website: named-edges feature-flag

* Update doc/md/eager-load.mdx

* Update doc/md/eager-load.mdx
2022-07-24 18:41:07 +03:00
Ariel Mashraki
43ceed9b6f doc: update getting-started to not mention PATH 2022-07-23 16:14:58 +03:00
42Atomys
9bfe86450d doc/predicates: fix invalid SQL example (#2778)
An invalide sql statement is provider in documentation, just a missing `)`
2022-07-21 11:35:07 +03:00
Thomas Meitz
081f2bbabb doc/website: update dialects doc to reflect postgres 14 testing (#2777) 2022-07-20 18:05:51 +03:00
Itay Garin
88183c1f4c doc/website: document tweaking transaction isolation levels (#2774)
* docs: document tweaking transaction isolation levels

* Update doc/md/tutorial-todo-gql-tx-mutation.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update doc/md/tutorial-todo-gql-tx-mutation.md

* Update doc/md/tutorial-todo-gql-tx-mutation.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-07-20 14:52:26 +03:00
Ariel Mashraki
42b68cb9fc doc/website: use title in code blocks (#2769) 2022-07-17 19:07:02 +03:00
nine-hundred
dd4a0203e5 When run 'go generate ./ent', got error on [create type Todo: invalid default value for enum field "status"] (#2746)
Because todo.graphql on tutorial-todo-gql.md says enum Status is "IN_PROGRESS"
2022-07-13 14:03:32 +03:00
Jannik Clausen
0f33b0bcb8 doc/md: update docs to fix #2731 (#2732) 2022-07-08 20:26:46 +02:00
Jannik Clausen
52a109128d doc/md: type safe feature activation versioned migration (#2727)
* type safe feature activation in example

* Update doc/md/versioned-migrations.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-07-07 15:21:44 +03:00
Jannik Clausen
412f5f75ca add docs about auto-increment counter "bug" in MySQL versions < 8.0 and how to handle it (#2722) 2022-07-06 10:34:39 +02:00
Jannik Clausen
5b67bdab4f dialect/sql/schema: atlas engine is now default (#2698)
* atlas engine is default, enabled diff by replay

* Apply suggestions from code review

* docs

* apply CR
2022-07-05 12:29:15 +02:00
Ariel Mashraki
aec59a3aa7 doc/md: update eager-loading implementation details (#2707) 2022-07-01 21:52:35 +03:00
Ariel Mashraki
4a26cab734 improve multi-tenancy example and documentation (#2705)
* example/privacytenant: support edge-field and improve code examples

* md/privacy: improve multi-tenancy documentation
2022-06-30 19:57:56 +03:00
Hafiz Shafruddin
5dbfa24b46 doc/md: add docs on using expression predicates in custom WHERE clauses (#2520)
* Add docs on using ExprP() for custom WHERE sql statement

* Add ExprP() examples using integration test

* move custom predicate example and show examples using both P() and ExprP()

* fix to greater or equal than

* rephrase wording and fix sql builder

* Update doc/md/predicates.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update doc/md/predicates.md

* Update doc/md/predicates.md

* Update doc/md/predicates.md

* Update doc/md/predicates.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-06-29 11:24:20 +03:00
frederikhors
84b05c05cd doc/md: add info about using WhereInput as predicates (#2691)
* Add info about using `WhereInput` in with `.Where()`

* Update doc/md/predicates.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update tutorial-todo-gql-filter-input.md

* Update predicates.md

* Update predicates.md

* Update tutorial-todo-gql-filter-input.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-06-27 14:57:11 +03:00
Nikita
e8bf1d1cbd doc/md: fix up examples in getting-started (#2690) 2022-06-26 15:00:58 +03:00
Ariel Mashraki
b44d593861 doc/website: oss footer logo (#2678) 2022-06-23 15:30:06 +03:00
smizuno2018
b89b13bbdb doc/tutorial: fix typos (#2663) 2022-06-19 09:59:04 +03:00
Jannik Clausen
7017cbc898 dialect/sql/schema: file based type store (#2644)
* dialect/sql/schema: file based type store

This PR adds support for a file based type storage when using versioned migrations. The file called `.ent_types` is written to the migration directory alongside the migration files and will be kept in sync for every migration file generation run.

In order to not break existing code, where the type storage might differ for different deployment, global unique ID mut be enabled by using a new option. This will also be raised as an error to the user when attempting to use versioned migrations and global unique ID.

Documentation will be added to this PR once feedback on the code is gathered.

* apply CR

* fix tests

* change format of types file to exclude it from atlas.sum file

* docs and drift test

* apply CR
2022-06-15 16:10:15 +02:00
Will Bicks
cd1afb235c entc: improve generated comments for edges and fields (#2632)
* replace default field comment with user comment if defined
* use comments defined on edges in generated entities
* add docs for comment method on edges and fields
* update integration to reflect above changes
2022-06-13 15:52:47 +03:00
Dor Liberman
1572f1eb14 doc/md: fix NamedValues option in graphql tutorial (#2535)
* doc/md: fixing NamedValues option in Add Fields To The Schema example

* Update doc/md/tutorial-todo-crud.md

* Update doc/md/tutorial-todo-crud.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-06-12 12:12:25 +03:00
allcontributors[bot]
b2844fb88c docs: add hax10 as a contributor for code (#2637)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-06-09 20:40:26 +03:00
Ariel Mashraki
fd955654a0 entc/gen: change codegen signature from entc to ent (#2627) 2022-06-07 17:48:17 +03:00
frederikhors
d9d63b5814 doc/md: use fmt.Errorf instead of errors.Wrapf (#2608)
* Use fmt.Errorf instead of errors.Wrapf

* Update transactions.md

* Update transactions.md
2022-06-07 10:33:25 +03:00
Sasha Melentyev
9e4660f104 doc: change golang docs links for actual (#2620) 2022-06-06 17:55:55 +03:00
frederikhors
2c3f65b528 doc/website: do not refer to sqlite3 anymore (#2593) 2022-06-01 18:55:07 +03:00
Amit Shani
63592f79c4 go: bump atlas to latest master (#2584) 2022-06-01 17:13:23 +03:00
Amit Shani
8fe8c748c5 doc/md: add more dialects to quickstart (#2588)
* doc/md: add more dialects to quickstart

* remove unnecessary spaces
2022-06-01 16:59:08 +03:00
Amit Shani
d071e0c70a doc/md: fix some broken links (#2589) 2022-06-01 16:44:25 +03:00
Ariel Mashraki
5d303d08b5 doc/privacy: add heading for filter rules section 2022-06-01 14:05:51 +03:00
Ariel Mashraki
e1c5277483 ent: initial support for edge schemas (#2560) 2022-05-25 15:46:00 +03:00
Jannik Clausen
fc03c8d283 doc/md: add note about versioned migration tool support requiring latest master (#2537) 2022-05-10 08:52:09 +02:00
Giau. Tran Minh
d8fdf3b512 doc/md: update GQL tutorial with schema generator (#2528)
* doc/md: update GQL tutorial

fixed the connections to Non-Null
fixed the name of WithWhereInputs()

* doc/md: initial Schema Generator tutorial

* update the tutorial

* fix: correct the line

* doc/md: apply suggestions from code review

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* doc/md: add more doc about `entgql.RelayConnection()`

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-05-09 18:09:21 +03:00