From 3f7f462f9bdf55392352f30260758d68d8c3c7d2 Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:06:22 +0200 Subject: [PATCH] doc/features: add bidiedges to list of feature-flags (#3954) --- doc/md/features.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/md/features.md b/doc/md/features.md index 4804de4caa..24ada915dd 100644 --- a/doc/md/features.md +++ b/doc/md/features.md @@ -80,6 +80,16 @@ The `namedges` option provides an API for preloading edges with custom names. This option can be added to a project using the `--feature namedges` flag, and you can learn more about in the [Eager Loading](eager-load.mdx) documentation. +### Bidirectional Edge Refs + +The `bidiedges` option guides Ent to set two-way references when eager-loading (O2M/O2O) edges. + +This option can be added to a project using the `--feature bidiedges` flag. + +:::note +Users that use the standard encoding/json.MarshalJSON should detach the circular references before calling `json.Marshal`. +::: + ### Schema Config The `sql/schemaconfig` option lets you pass alternate SQL database names to models. This is useful when your models don't all live under one database and are spread out across different schemas.