mirror of
https://github.com/ent/ent.git
synced 2026-04-28 13:40:56 +03:00
doc/graphql: change mutation-input example to extension
This commit is contained in:
committed by
Ariel Mashraki
parent
ac9f801259
commit
095ef5b4e6
@@ -167,7 +167,10 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("creating entgql extension: %v", err)
|
||||
}
|
||||
if err := entc.Generate("./schema", &gen.Config{}, entc.Extensions(ex)); err != nil {
|
||||
opts := []entc.Option{
|
||||
entc.Extensions(ex),
|
||||
}
|
||||
if err := entc.Generate("./schema", &gen.Config{}, opts...); err != nil {
|
||||
log.Fatalf("running ent codegen: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user