mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
ent/doc: add indexes doc and example
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1380 Reviewed By: alexsn Differential Revision: D17075317 fbshipit-source-id: 021cb0bde3849af5a5d842b715a7b7dbd861c54f
This commit is contained in:
committed by
Facebook Github Bot
parent
373769dfaf
commit
e00a7d96a4
10
examples/edgeindex/README.md
Normal file
10
examples/edgeindex/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# City-Street Unique Index Example
|
||||
|
||||
In this example, we have a `City` with many `Street`s, and we want to set the
|
||||
street name to be unique under each city.
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
Reference in New Issue
Block a user