snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
16
examples/jsonencode/README.md
Normal file
16
examples/jsonencode/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# JSON Encode Extension
|
||||
|
||||
`EncodeExtension` is an implementation of entc.Extension that adds a `MarshalJSON`
|
||||
method to each generated type `<T>` and inlines the Edges field to the top level JSON.
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
|
||||
### Run Examples
|
||||
|
||||
```console
|
||||
go test
|
||||
```
|
||||
Reference in New Issue
Block a user