Commit Graph

94 Commits

Author SHA1 Message Date
Ariel Mashraki
feed51d773 doc: add hook helpers to ent website (#729) 2020-09-06 10:07:41 +03:00
Ariel Mashraki
77122ce70e doc: minor spelling changes (#711) 2020-08-29 21:17:55 +03:00
Alexander Emelin
e30adfc601 docs: fix missing ref in schema example (#682) 2020-08-22 13:13:25 +03:00
Justin Page
e9ae2072ea doc: use pkg.go.dev for documentation links (#681)
pkg.go.dev serves Go documentation. However, it also understands modules
and has information about past versions of a package. Later this year
godoc.org will be redirected to pkg.go.dev.

Let's use this subdomain going forward when linking Go documentation.

Reference: https://blog.golang.org/pkg.go.dev-2020
2020-08-22 13:11:36 +03:00
Paul Vollmer
238ac627f6 doc/md: fix added missing context import (#683) 2020-08-22 13:09:59 +03:00
Ariel Mashraki
fd0a7f9f02 all: facebookincubator/ent => facebook/ent (#660)
ent repository is going to be migrated to facebook organization
2020-08-18 11:05:08 +03:00
Ariel Mashraki
2a0c219f9d doc: add schema and template annotations (#657)
And add gotemplate to highlight.js as a custom language
2020-08-04 22:14:00 +03:00
Ariel Mashraki
c7bf64fa71 doc: add an example for create-bulk api (#650) 2020-07-30 19:25:19 +03:00
Ariel Mashraki
f629275d60 doc: use dialect package constant in example (#607) 2020-07-15 19:30:23 +03:00
Ariel Mashraki
6cd1d18d46 doc: add transaction hooks to entgo.io (#600) 2020-07-12 11:36:29 +03:00
Roger Ng
372ccf79aa doc: add a sql.DB integration section for pgx with PostgreSQL (#574)
* doc: add a sql.DB integration section for pgx with PostgreSQL

* Fix indentation
2020-06-29 14:58:52 +03:00
Ariel Mashraki
52305c1834 doc: add a mutation section for crud interface (#570) 2020-06-25 23:17:20 +03:00
Alex Snast
93c78aeda6 ent/ci: avoid ci trigger on doc changes 2020-06-18 09:36:27 +03:00
Ariel Mashraki
c616f7f2e7 doc: add docs for edges storage-key option (#551) 2020-06-16 22:50:29 +03:00
Ariel Mashraki
9a47fea02c doc: add documentation for go-type option (#536) 2020-06-09 11:39:32 +03:00
Ariel Mashraki
0c76b19143 doc: update docs regarding entc template formats (#489) 2020-05-12 12:29:00 +03:00
Ariel Mashraki
daf658e265 doc: add documentation for schema-type option (#487) 2020-05-11 19:55:10 +03:00
Ariel Mashraki
fa9ab77233 doc: add a section on external templates (#482) 2020-05-09 23:42:00 +03:00
Ariel Mashraki
7de4f4b758 doc: add documentation and example for enttest (#453) 2020-04-26 16:31:24 +03:00
Ariel Mashraki
88ae8eded2 doc: gofmt code blocks in mixin examples (#440) 2020-04-20 14:02:17 +03:00
Ariel Mashraki
1c49159d18 entc/gen: add indexes, edges and hooks to mixin (#431) 2020-04-20 13:40:56 +03:00
Ariel Mashraki
1ff5e02ea6 doc: update sqlite migration status (#429) 2020-04-13 10:17:05 +03:00
Ariel Mashraki
a2ea5bfbee cmd/entc: add generate.go file to env init (#402)
* cmd/entc: add generate.go file to env init

* doc: update getting-started and codegen documentation
2020-03-24 19:23:30 +02:00
Ariel Mashraki
4d29191005 doc: add hooks documentation and example (#396)
* doc: add hooks documentation and example

* docs: finish hooks first documentation
2020-03-22 13:31:32 +02:00
Ariel Mashraki
dc222c0b15 entc/gen: remove example_test template from codegen (#351)
Fixes #297
2020-02-18 12:26:46 +02:00
Ariel Mashraki
310f5c7fb4 doc: add documentation and examples for id field (#349) 2020-02-16 17:27:08 +02:00
zjl233
7f8c2249d3 doc: fix a doc error (#339) 2020-02-11 14:01:55 +02:00
Ariel Mashraki
f270e41f6e doc: add comment on future development of eager-loading (#283) 2020-01-13 21:24:09 +02:00
Ariel Mashraki
82bc640870 doc: add documentation and examples for eager-loading (#282) 2020-01-13 17:37:59 +02:00
Jeremy
59ddab244d fix comment error in schema-edges.md (#238) 2019-12-13 18:14:07 +02:00
hantmac
e045095ce2 fix comment error 2019-12-13 11:32:56 +08:00
Jian Li
e84da15b37 fix predicates doc type error (#229) 2019-12-11 07:39:14 +02:00
Ariel Mashraki
8f3f496308 doc: fix example link in edges doc 2019-12-09 09:31:18 +02:00
Alex Snast
b34c955739 ent/entc: adding NonNegative predicate to signed int types
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/179

Reviewed By: a8m

Differential Revision: D18617566

fbshipit-source-id: ab5ced97836d05ee5936b39f571063cf618b3481
2019-11-20 10:11:58 -08:00
Ariel Mashraki
559f163abe all: add postgres to docs
Reviewed By: alexsn

Differential Revision: D18245079

fbshipit-source-id: d4f59d88fe2125d924bfb85521fa43898ea5ce35
2019-10-31 06:31:21 -07:00
Ariel Mashraki
17cd619c2a doc: add missing import to fields example
Reviewed By: alexsn

Differential Revision: D18058307

fbshipit-source-id: 752b8dc1c5f97947ce59d79c1ed27e57b2a216f7
2019-10-22 01:31:29 -07:00
Ariel Mashraki
e75a817d63 ent/doc: better installation instructions
Reviewed By: alexsn

Differential Revision: D17950790

fbshipit-source-id: d7517768bdfcc2eff8a5d900943a61ea2359d91b
2019-10-16 04:30:16 -07:00
Ariel Mashraki
c5b790043c entc: change the way we inject additional fields (#1560)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1560

Pull Request resolved: https://github.com/facebookincubator/ent/pull/96

Reviewed By: alexsn

Differential Revision: D17931147

fbshipit-source-id: 24e1d72be482cb787c557f46feeb2ed4a31dfe60
2019-10-15 12:00:46 -07:00
Ariel Mashraki
2c8d7fcc8b ent/doc: add custom predicate exmaple
Reviewed By: alexsn

Differential Revision: D17926144

fbshipit-source-id: 5390585bf634aecfad86a729db6e633c4a7e6f5e
2019-10-15 06:42:44 -07:00
Ariel Mashraki
9521000534 doc: add examples for custom sql.DB and opencensus
Reviewed By: alexsn

Differential Revision: D17853894

fbshipit-source-id: bdceae27fe12bcf8bde877c51472efe7bd2b2bd6
2019-10-10 05:02:59 -07:00
Chandan Rai
a3e6333b2a corrected minor typo
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/77

Differential Revision: D17809443

Pulled By: a8m

fbshipit-source-id: fc9e86bc252e0cecaadd54a8a9da05845580bff5
2019-10-08 07:22:37 -07:00
Ido Shveki
3d0d8724b0 ent/schema: adding sensitive fields support (#75)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/75

Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1539

Supporting "Sensitive" mode for string fields.

Reviewed By: a8m

Differential Revision: D17786543

fbshipit-source-id: a4d022c1436472cb525cdd50663dd0ce23d13699
2019-10-07 07:46:28 -07:00
Ariel Mashraki
7597f07912 entc: add option to use entc as package
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/72

Reviewed By: alexsn

Differential Revision: D17783580

fbshipit-source-id: 597f124a28415fef66b0b16811ad2acac8df631d
2019-10-07 07:06:32 -07:00
Guilherme Oenning
54d0d7fe53 docs: fix a minor doc error (#67)
Summary:
closes https://github.com/facebookincubator/ent/issues/64
Pull Request resolved: https://github.com/facebookincubator/ent/pull/67

Differential Revision: D17782362

Pulled By: alexsn

fbshipit-source-id: eba3e2beb6e3f4ee5fc848ef67c8547a969f7b1e
2019-10-06 04:32:36 -07:00
0xflotus
16fc85b785 (doc): fixed small typo error
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/59

Differential Revision: D17760165

Pulled By: alexsn

fbshipit-source-id: b1c362c136959ce25defeaf2410533a208c0a6eb
2019-10-04 01:11:46 -07:00
Tomy Smith
d4efc09f75 fix import in first edge docs code sample
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/55

Differential Revision: D17747608

Pulled By: a8m

fbshipit-source-id: c59b5bc62423d77b684a399144c24ad5137c2e20
2019-10-03 14:15:24 -07:00
Ariel Mashraki
8b9e5cd7d0 ent/doc: add enum field type to docs
Reviewed By: alexsn

Differential Revision: D17737409

fbshipit-source-id: b12c2a3b5da7b4ca06818785d55dfeda0a2e85f1
2019-10-03 06:25:10 -07:00
Shouichi Kamiya
50637b439e s/GitHab/GitHub/
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/50

Differential Revision: D17737109

Pulled By: a8m

fbshipit-source-id: 6af5482259ed3402e8bdb21b4226361c4f46dc8d
2019-10-03 05:14:36 -07:00
Ariel Mashraki
1750d33bd8 all: add support for running examples in playground
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/49

Reviewed By: alexsn

Differential Revision: D17735758

fbshipit-source-id: d4b80631e56870690cc54912528c9950f4e48ccc
2019-10-03 03:05:40 -07:00
Ariel Mashraki
c4527afbaf ent/doc: fix getting-started doc example
Reviewed By: dlvhdr

Differential Revision: D17735319

fbshipit-source-id: f90311d94a189d911b62ab972ac98982a623271b
2019-10-03 02:07:56 -07:00