Ariel Mashraki
15bebe8d89
ent: support schema view ( #4157 )
2024-07-28 19:00:47 +03:00
Ariel Mashraki
7beda3fb2b
ent: export all generated query operations ( #4001 )
2024-04-04 11:58:48 +03:00
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
6198beb484
entc/gen: load referenced foreign-keys on eager-loading ( #3497 )
2023-04-20 17:26:37 +03:00
Ariel Mashraki
ef0427550f
ent: add additional fields to QueryContext
2023-01-14 22:47:54 +02:00
Ariel Mashraki
f226627d67
ent: export query interceptors ( #3157 )
2022-12-19 10:17:10 +02:00
Ariel Mashraki
2c63d1d70e
all: gofmt -w -r 'interface{} -> any' ( #2874 )
2022-08-19 18:23:04 +03:00
Zhizhen He
9da36e461f
all: fix typos ( #2301 )
2022-01-29 10:30:31 +02:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
2021-02-02 23:03:04 +02:00
Henry Woody
eb23cd9218
ent: fix Policy documentation code formatting ( #1120 )
...
Fixes the indentation of the usage code example under the `Policy` type
so that proper formatting is applied.
2021-01-03 06:55:01 +02:00
Ariel Mashraki
ed48f15429
dialect/entsql: add entsql annotation ( #876 )
2020-10-23 16:39:58 +03:00
Ariel Mashraki
c8a6527612
schema/mixin: add support for mixed-in annotations
2020-10-12 13:06:25 +03:00
Ariel Mashraki
85c4999472
ent: add annotations to type schema
2020-10-12 13:06:25 +03:00
Ariel Mashraki
d5ae1b018e
schema/mixin: add privacy policy to mixin ( #821 )
2020-10-06 10:59:36 +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
837c000ea3
ent: export OldField method in ent.Mutation ( #590 )
2020-07-06 17:14:00 +03:00
Ariel Mashraki
ef7285b917
entc/gen: add api for getting field old values ( #491 )
2020-05-17 14:23:36 +03:00
Ariel Mashraki
1c49159d18
entc/gen: add indexes, edges and hooks to mixin ( #431 )
2020-04-20 13:40:56 +03:00
Alex Snast
cec1dd1edf
ent: use stringer tool to generate Op.String() ( #439 )
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-04-19 16:58:02 +03:00
Alex Snast
6e6651c878
Query policy ( #411 )
...
* entc/gen: drop xerrors package usage
* all: bump dependencies version
* entc/gen: adding query privacy policy support
2020-03-29 18:11:13 +03:00
Ariel Mashraki
abee904420
ent: minor fix for ent.Query comment ( #404 )
2020-03-24 14:30:36 +02:00
Alex Snast
63c6d9786d
entc/gen: adding ent.Query type
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-03-19 14:30:00 +02:00
Ariel Mashraki
7988d3084d
entc/hooks: initial work for mutations and hooks ( #377 )
...
* entc/hooks: initial work for mutations and hooks
* ent/schema: adding policy to schema
* ent: change op string to uint
* entc: move entschema to runtime and enable smooth transition
* entc/privacy: adding privacy template
* all: goimports
* intg/hooks: mutation client/tx and basic schema tests
* ent/privacy: adding more verbose decisions
* entc/gen: edge-ids getter and additional tests
* all: regen assets
* entc/gen: fix client hookd propagation
* intg: add deletion example
* intg/privacy: remove old entschema package
* typed privacy
* ent/privacy: hooks shouldn't be called on privacy deny
* entc/gen: fix schema hooks invocation order
* remove read policy from public api
* update circleci go orb
Co-authored-by: Ariel Mashraki <ariel@mashraki.co.il >
2020-03-16 00:19:27 +02:00
Ariel Mashraki
df37dcc1a9
ent: add mixin interface to schema
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/42
Reviewed By: alexsn
Differential Revision: D17600212
fbshipit-source-id: 74021efb2d7974c28e6a3f6df53bcedebff874f2
2019-09-26 05:59:27 -07:00
Ariel Mashraki
76f5b6ec5f
ent/schema: add config for customize schema options
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/40
Reviewed By: alexsn
Differential Revision: D17480104
fbshipit-source-id: 5223430e3b2223b8471a85bd1d85b445f23acfce
2019-09-22 01:38:07 -07:00
Ariel Mashraki
bd07c86b60
all: add license header to all go files
...
Summary:
Used addlicense to generate this:
addlicense -c "Facebook Inc" -f license_header .
example was taken from: https://github.com/facebook/litho/blob/master/lib/soloader/BUCK
Reviewed By: alexsn
Differential Revision: D17070152
fbshipit-source-id: e7b91398d7f6181727be3400c1872ad5f28e38ed
2019-08-27 04:48:28 -07:00
Ariel Mashraki
3e7270e835
ent/schema: change ent interafces for descriptor only
...
Summary: wip
Reviewed By: alexsn
Differential Revision: D17052576
fbshipit-source-id: 165faca2ff02c22bb76f164d81d406ce46ab04c4
2019-08-27 03:58:25 -07:00
Ariel Mashraki
52292557f6
entc/indexes: inverse only restriction applies only on O2O relation
...
Reviewed By: alexsn
Differential Revision: D17004823
fbshipit-source-id: 08b62960b447a157419dbeefd80ca1fcd29efd76
2019-08-25 06:41:14 -07:00
Alex Snast
e6a1333b9d
ent/schema: allow multi from edges on ent index
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/24
Reviewed By: a8m
Differential Revision: D16961315
fbshipit-source-id: cd7cd0fe2555dc1acc2ad7301d92b5b4cd042a39
2019-08-22 07:00:29 -07:00
Alex Snast
85b29631a8
entc/schema: adding support for immutable fields ( #1340 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1340
Immutable fields are ent fields which cannot be updated
Reviewed By: a8m
Differential Revision: D16899625
fbshipit-source-id: ca482c66570e84ca9a1e0a03f729847561f2816b
2019-08-20 02:17:13 -07:00
Ariel Mashraki
e0e754717e
ent: change ent package name ( #1338 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338
Pull Request resolved: https://github.com/facebookincubator/ent/pull/14
Reviewed By: alexsn
Differential Revision: D16890825
fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00
Ariel Mashraki
ba950aac52
entc/load: add support for embedding schemas
...
Reviewed By: alexsn
Differential Revision: D16884402
fbshipit-source-id: 216bbf875251b0cbdd61e312ad763b439cab7813
2019-08-18 04:30:14 -07:00
Ariel Mashraki
108affa8dd
ent/schema: move schema packages into a separate package
...
Reviewed By: alexsn
Differential Revision: D16763332
fbshipit-source-id: e3e4279c62992de192464c3d3b1036c45687507c
2019-08-12 07:53:03 -07:00
Ariel Mashraki
2128fc2ca1
ent/index: add indexes api
...
Reviewed By: alexsn
Differential Revision: D16757699
fbshipit-source-id: 6a0027b1f855721f1415b8c72b5b1be8bc2ce902
2019-08-12 06:44:40 -07:00
Ariel Mashraki
619b63d5f7
ent/schema: rename nullable to nillable
...
Reviewed By: idoshveki
Differential Revision: D16687892
fbshipit-source-id: e8cfaaf1241e94c2de0a9fe9077326339d593716
2019-08-07 06:56:33 -07:00
Ariel Mashraki
2c8b5a65b7
entc: abandon plugins
...
Summary:
Go plugin is not a good solution for both internal and external usage.
It's hard to manage and maintain matching versions (both Go and external libraries), and it does not support Windows.
Reviewed By: alexsn
Differential Revision: D16582217
fbshipit-source-id: 81876d2c6f30bbfc16ecf9e5000f0670f2e62484
2019-08-01 05:07:48 -07:00
Ariel Mashraki
2cfda7564f
type safe predicates
...
Reviewed By: alexsn
Differential Revision: D16452717
fbshipit-source-id: da0a07275434d95d73a5a26830a2e5535c3abf47
2019-07-24 08:35:51 -07:00
Ariel Mashraki
1e47de5300
move lib/go/gremlin to ent/dialect ( #1192 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1192
Pull Request resolved: https://github.com/facebookincubator/ent/pull/11
Reviewed By: alexsn
Differential Revision: D16377224
fbshipit-source-id: 07ca7436eb9b64fbe2299568560b91466b2417ba
2019-07-20 08:27:06 -07:00
facebook-github-bot
267e3c15bd
Initial commit
...
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
2019-06-16 04:37:51 -07:00