簡體   English   中英

在單個 web 應用程序的不同部分使用 REST 和 GraphQL

[英]Using REST and GraphQL in different parts of a single web app

我正在創建一個 web 應用程序,我想知道是否可以同時使用 REST 和 GraphQl 創建它。 我並不是說我不想將 REST 包裝在 graphql 中。 It is a web app with a variety of functionalities and graphql would be best suited towards the blog portion of the app but we've already constructed the rest of it using REST. 將它們用於應用程序的各個部分是否可能/不好?

我看不出有什么問題。 只要確保創建一個單一的 API 抽象,它將在內部處理這兩種情況,這樣應用程序本身就不會擔心這一點(如果你想在某個時候將 go 與 Z524DE3D2ADE4544176F60702B36FBFZ 完全結合)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM