Skip to content

Commit

Permalink
Fix: schema error with graphql-code-generator #449
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Dec 14, 2023
1 parent 88b7e8d commit 91d9d01
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ func (g *GraphJin) newGraphJin(conf *Config,
return
}

if err = gj.initIntro(); err != nil {
return
}

if conf.SecretKey != "" {
sk := sha256.Sum256([]byte(conf.SecretKey))
gj.encKey = sk
Expand Down
4 changes: 4 additions & 0 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ func (gj *graphjin) _initSchema() (err error) {
return
}

return
}

func (gj *graphjin) initIntro() (err error) {
if !gj.prod && gj.conf.EnableIntrospection {
var introJSON json.RawMessage
introJSON, err = gj.getIntroResult()
Expand Down
Binary file modified wasm/graphjin.wasm
Binary file not shown.
Binary file removed wasm/tiny-graphjin.wasm
Binary file not shown.

1 comment on commit 91d9d01

@vercel
Copy link

@vercel vercel bot commented on 91d9d01 Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.