Skip to content

Commit

Permalink
refactor: add package_bindings for the model
Browse files Browse the repository at this point in the history
Signed-off-by: saltbo <[email protected]>
  • Loading branch information
saltbo committed Feb 23, 2023
1 parent 59e5ec0 commit 3b0ff73
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 957 deletions.
2 changes: 1 addition & 1 deletion apis/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package apis

//go:generate go run github.com/99designs/gqlgen generate
//go:generate go run github.com/Khan/genqlient genqlient.yaml
//go:generate go run github.com/Khan/genqlient@main genqlient.yaml
7 changes: 5 additions & 2 deletions apis/genqlient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
schema: graph/*.graphqls
operations:
- genqlient.graphql
generated: ../client/generated.go
generated: ../pkg/client/generated.go

bindings:
DateTime:
type: time.Time

client_getter: "github.com/bonaysoft/engra/client/context.GetClient"
client_getter: "github.com/bonaysoft/engra/pkg/client/context.GetClient"

package_bindings:
- package: github.com/bonaysoft/engra/apis/graph/model
Loading

0 comments on commit 3b0ff73

Please sign in to comment.