doraemon-home / doraemon-home.github.io

这里准备了各种道具,来帮助小伙伴们化解身边的种种困难问题。知识源于分享,我们期待你的加入^_^(欢迎star)
https://doraemon-home.github.io/
MIT License
6 stars 1 forks source link

Input context to resolver #333 #68

Open LeungGeorge opened 6 years ago

LeungGeorge commented 6 years ago

https://github.com/graphql-go/graphql/issues/333

Hi, I have problem that i do not know how to pass context to each resolver and i cannot find it on google. Could anybody help me ?

通过context传参给resolve

LeungGeorge commented 6 years ago

上个demo:https://github.com/graphql-go/graphql/blob/master/examples/context/main.go