前面學完了怎麼請求資料,怎麼定義 Schema,最後我們就是要來學習怎麼解析請求來拿取資料。 此處我是搭配 Apollo 來使用,所以可能跟其他 Framework 不同。到了 Resolver 基本上我認為就已經不關 GraphQL 的事情了,就主要是後端的邏輯該怎麼利用得到的參數來從 Database 取得資料或更新資料。 Operation 前面提到 GraphQL 的 Operation 是 Entry Point,所以 Front End 請求所用的都需要在 Resolver 也定義,...
一個很油的不工程的攻城獅,喜歡不務正業、各式新奇的東西。看看網路行銷、政治議題、二次元世界 Peko
I am not a programmer just a leaner. Writing JavaScript, Python, and Go and doing something on Kubernetes.
Markdown supported · ⌘↵ to post
No responses yet.