Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add graphql example #118

Closed
wants to merge 11 commits into from
Closed

Conversation

Skyenought
Copy link
Contributor

What type of PR is this?

feat

What this PR does / why we need it (English/Chinese):

zh: 添加 graphql 的使用示例

Which issue(s) this PR fixes:

cloudwego/hertz#806
cloudwego/hertz#922

graphql/readme.md Outdated Show resolved Hide resolved
graphql/readme.md Outdated Show resolved Hide resolved
"github.com/cloudwego/hertz-examples/graphql/graph/model"
"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/app/server"
"github.com/hertz-contrib/pprof/adaptor"
Copy link
Member

Choose a reason for hiding this comment

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

除非特殊场景,否则不推荐使用这个 adaptor

}

// Migration to create tables for Order and Item schema
db.AutoMigrate(&model.Order{}, &model.Item{})
Copy link
Member

Choose a reason for hiding this comment

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

可以参考其他 easy-note 在 docker 初始化的时候初始化表格

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants