Commit Graph

309 Commits

Author SHA1 Message Date
Ariel Mashraki
6538efe71d doc/md: entc config example for codegen (#2074) 2021-10-27 14:24:41 +03:00
Jeffrey Stiles
a98798ebbc doc/tutorial: update todo-gql-mutation-input example (#2063)
* Update tutorial-todo-gql-mutation-input.md

Make example code match latest changes to https://github.com/a8m/ent-graphql-example:

- Renaming fields that accept IDs on mutation_inputs (including https://github.com/a8m/ent-graphql-example/pull/5)
- Removing duplicate fields when edge fields are used (https://github.com/a8m/ent-graphql-example/pull/3)

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

Add back the accidental removal of `$input` variable declaration.
2021-10-27 08:18:06 +03:00
Ariel Mashraki
4d1fceb976 doc/codegen: add doc and example for external dependencies.
See #2066
2021-10-27 08:16:20 +03:00
Ariel Mashraki
5bbd973ffa doc/graphql: replace templates with extensions (#2064) 2021-10-25 07:52:04 +03:00
Ariel Mashraki
4919889eb4 doc/fields: add example for json default values 2021-10-22 16:09:25 +03:00
Hila Kashai
5c76254b5c doc/extension: add popular extensions (#2054)
* add popular extensions

* edit popular extensions

* Apply suggestions from code review

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-21 17:30:40 +03:00
Lenu Gan
2f0d9de45f doc/faq: add read-write separation example (#2032) 2021-10-19 15:45:31 +03:00
Ariel Mashraki
3e6c40886d entc/gen: support count with field selection
Fixed https://github.com/ent/ent/issues/2036
2021-10-17 19:03:49 +03:00
allcontributors[bot]
efba15f6a7 docs: add mookjp as a contributor for code (#2027)
* 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>
2021-10-12 10:30:41 +03:00
allcontributors[bot]
058e40abcf docs: add sivchari as a contributor for code (#2024)
* 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>
2021-10-11 14:09:52 +03:00
allcontributors[bot]
b518a2b4f5 docs: add ThinkontrolSY as a contributor for code (#2014)
* 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>
2021-10-06 21:47:09 +03:00
Yoni Davidson
68793d3f99 doc/graphql: update gql prefix to genereated files (#2009) 2021-10-05 12:27:33 +03:00
Ariel Mashraki
de9bf4daf1 doc/upsert: add example for clearing and de/incrementing fields (#1994) 2021-09-28 22:31:19 +03:00
allcontributors[bot]
0c4e9c78a7 docs: add attackordie as a contributor for doc (#1988) 2021-09-27 08:00:24 +03:00
Brian
3c3f328be7 doc/tutorial: fix imports in tutorial-grpc-setting-up.md (#1984)
Update import to remove this error: "Sticking to the "Quick Instruction" by "undeclared name: field" error #1931 "
2021-09-26 22:12:07 +03:00
allcontributors[bot]
7bec24c544 docs: add evanlurvey as a contributor for code (#1983)
* 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>
2021-09-25 23:22:49 +03:00
allcontributors[bot]
4e753f0c71 docs: add storyicon as a contributor for code (#1974)
* 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>
2021-09-22 16:03:15 +03:00
Ariel Mashraki
432af473aa doc/extension: error should not end with punctuation (#1973) 2021-09-22 16:02:07 +03:00
allcontributors[bot]
073215901e docs: add EndlessIdea as a contributor for code (#1969)
* 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>
2021-09-21 20:46:56 +03:00
Ariel Mashraki
207cbef60f doc/fields: add examples for unique field selection 2021-09-21 20:33:53 +03:00
Benjamin Kane
06f9353734 doc/md: link to non-foreign-key join-table fields GH issue (#1912)
https://github.com/ent/ent/issues/1061 seems to be a common question ( also see [Slack](https://gophers.slack.com/archives/C01FMSQDT53/p1630519196046300), so link to it in the docs.
2021-09-13 12:11:33 +03:00
allcontributors[bot]
12227e7ae5 docs: add s-takehana as a contributor for doc (#1938)
* 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>
2021-09-11 12:09:30 +03:00
s-takehana
4497656078 doc/md: add missing imports for getting-started page (#1934) 2021-09-11 12:08:26 +03:00
allcontributors[bot]
52fa73a0d5 docs: add tsingsun as a contributor for code (#1933)
* 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>
2021-09-09 14:03:23 +03:00
allcontributors[bot]
fc2b2f2823 docs: add isoppp as a contributor for doc (#1929)
* 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>
2021-09-08 19:44:00 +03:00
Hiroki Isogai
125bb0c00f docs/md: fix unresolved reference (#1928) 2021-09-08 19:38:47 +03:00
allcontributors[bot]
0d91f6396c docs: add odeke-em as a contributor for code (#1923)
* 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>
2021-09-07 17:04:56 +03:00
Ariel Mashraki
b96dfa6d9b doc/md: fix LIKE predicate example (#1922) 2021-09-07 15:03:59 +03:00
Sadman Sakib
0a9c4c4232 doc/md: custom predicate example for LIKE operator (#1911)
* fix typo on doc/md/crud.md

Signed-off-by: sadmansakib <ssadman8@gmail.com>

* add example for LIKE operator

Signed-off-by: sadmansakib <ssadman8@gmail.com>

* 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>
2021-09-07 09:04:40 +03:00
Giau. Tran Minh
2a40f27b2b doc/md: update MaxRuneCount example (#1915)
* doc/md: update MaxRuneCount example

Update MaxRuneCount example with entsql.Annotation. 

https://github.com/ent/ent/issues/1856
https://github.com/ent/ent/issues/1914

* update custom validator description

* Update doc/md/schema-fields.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/schema-fields.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/schema-fields.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
2021-09-05 15:19:39 +03:00
Ariel Mashraki
3c8cef3da1 doc/extensions: minor fixes to code blocks (#1909) 2021-09-03 17:21:16 +03:00
Rotem Tamir
2e24ce1361 doc/md: initial documentation for the extension API (#1906) 2021-09-02 15:57:28 +03:00
Rotem Tamir
5fc8e708c2 doc/md: update templates.md (#1905) 2021-09-02 09:42:41 +03:00
allcontributors[bot]
bbc4a4c14b docs: add seiichi1101 as a contributor for code (#1904)
* 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>
2021-09-02 09:08:36 +03:00
Ariel Mashraki
f0d985f542 all: replace save with exec when the model is not needed 2021-09-01 22:36:44 +03:00
Yoni Davidson
53d7c330e6 md/fields: fix code typo in Enum example (#1887) 2021-08-30 11:12:17 +03:00
Yoni Davidson
5adcb6b376 md/fields: clarify enum fields usage (#1886)
* basic run

* show example on mysql

* clean

* small fixes

* fix comments

* Apply suggestions from code review

PR review suggestions.

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>

* Update doc/md/schema-fields.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
2021-08-30 10:07:22 +03:00
allcontributors[bot]
982ec097ad doc: add RiskyFeryansyahP as a contributor for code (#1884)
* 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>
2021-08-28 10:11:52 +03:00
Ariel Mashraki
1304dc3d79 doc/features: format sql/modifier examples 2021-08-25 18:28:37 +03:00
Ariel Mashraki
badf981b37 entc/integration: add example for embedding ent.T in Scan 2021-08-24 22:26:59 +03:00
Amit Shani
60e726812b schema/field: add NotEmpty built-in validator to bytes fields (#1869)
* added MaxLen built-in validator to `[]byte`

* typo

* move test to type_test.go

* Update doc/md/schema-fields.md

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

* added min len validator to bytes

* fix tests
go generate

* CR

* add not empty validator

* CR

* doc/md:  add doc on `NotEmpty` bytes validator

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-08-24 14:47:15 +03:00
Amit Shani
ac0bd65145 schema/field: add MinLen built-in validator to bytes fields (#1867)
* added MaxLen built-in validator to `[]byte`

* typo

* move test to type_test.go

* Update doc/md/schema-fields.md

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

* added min len validator to bytes

* fix tests
go generate

* CR

* CR

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-08-24 14:07:29 +03:00
Amit Shani
ad792fe79e schema/field: add MaxLen built-in validator to bytes fields (#1863)
* added MaxLen built-in validator to `[]byte`

* typo

* move test to type_test.go

* Update doc/md/schema-fields.md

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-08-24 10:23:43 +03:00
allcontributors[bot]
d84ac191b1 docs: add dakimura as a contributor for code (#1862)
* 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>
2021-08-22 22:07:28 +03:00
lhlmgr
22527cc281 Update graphql.md (#1846)
fix typo in doc: `WithNodeType` accepts a mapping function, while `WithFixedNodeType` accepts a `string` e.g. the typ name.
2021-08-17 06:02:30 +03:00
Amit Shani
7c727e1f84 doc/md: fix doc in eager-load page (#1844)
* update typo

* Update eager-load.md
2021-08-16 11:05:41 +03:00
Zeev Manilovich
5aaa7736ee doc/schema-fields: make enum example clearer (#1842) 2021-08-15 16:03:00 +03:00
Ciaran Liedeman
f25e0c17ea doc: Removed extra limit (#1837) 2021-08-14 13:27:14 +03:00
MasseElch
6f4882663a doc/md: rename masseelch user (#1825)
* doc/md: Hide my clear name

😄

* doc/md: Hide my clear name
2021-08-11 17:39:19 +03:00
Yoni Davidson
33e3a8d7b7 doc/md: moved setup go environment before installation (#1816) 2021-08-08 14:14:10 +03:00