Skip to content

Commit

Permalink
doc/features: add bidiedges to list of feature-flags (ent#3954)
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m authored Feb 24, 2024
1 parent 7284481 commit 3f7f462
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/md/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3f7f462

Please sign in to comment.