Skip to content

Commit

Permalink
refactor: Change a graph structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Apr 3, 2024
1 parent 4db34fb commit 1f17630
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 579 deletions.
12 changes: 6 additions & 6 deletions gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ schema:

# Where should the generated server code go?
exec:
filename: serve/graph/generated/generated.go
package: generated
filename: serve/graph/generated.go
package: graph

# Where should any generated models go?
model:
Expand All @@ -16,9 +16,9 @@ model:
# Where should the resolver implementations go?
resolver:
layout: follow-schema
dir: serve/graph/resolvers
package: resolvers
filename_template: "{name}.resolvers.go"
dir: serve/graph
package: graph
filename_template: '{name}.resolvers.go'
# Optional: turn on to not generate template comments above resolvers
# omit_template_comment: false

Expand Down Expand Up @@ -62,7 +62,7 @@ resolver:
# gqlgen will search for any type names in the schema in these go packages
# if they match it will use them, otherwise it will generate them.
autobind:
- "github.com/gnolang/tx-indexer/serve/graph/model"
- 'github.com/gnolang/tx-indexer/serve/graph/model'

# This section declares type mapping between the GraphQL and go type systems
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package resolvers
package graph

import (
"time"
Expand Down
Loading

0 comments on commit 1f17630

Please sign in to comment.