Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Migrate to latest ent/contrib. Add patches to vulnerability review
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarfors committed Sep 14, 2021
1 parent 5537f7e commit d292ec5
Show file tree
Hide file tree
Showing 17 changed files with 1,766 additions and 1,754 deletions.
1 change: 1 addition & 0 deletions ent/codescan.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions ent/entc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand Down Expand Up @@ -25,12 +26,12 @@ func main() {
ex, err := entgql.NewExtension(
entgql.WithSchemaPath("../gql/ent.graphql"),
entgql.WithConfigPath("../gql/gqlgen.yaml"),
entgql.WithCustomRelaySpec(true, func(name string) string {
return name + "_connection"
}),
entgql.WithNaming("snake"),
// entgql.WithCustomRelaySpec(true, func(name string) string {
// return name + "_connection"
// }),
// entgql.WithNaming("snake"),
// entgql.WithOrderBy(true),
entgql.WithWhereFilters(true),
entgql.WithOrderBy(true),
entgql.WithMapScalarFunc(func(f *gen.Field, o gen.Op) string {
if f.StructField() == "Metadata" {
return "Map"
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d292ec5

Please sign in to comment.