【问题标题】:Run Apollo GraphQL Server on Google Cloud Functions在 Google Cloud Functions 上运行 Apollo GraphQL 服务器
【发布时间】:2020-12-14 01:37:58
【问题描述】:

我想在 Google Cloud Functions 上运行 Apollo GraphQL 服务器。我想它基本上归结为运行具有不同路由的 Express 服务器。有可能吗?如果是,那怎么办?请注意,我不希望将任何 Firebase 库用于此处突出显示的内容:

1) Cloud Functions for Firebase and Express

2) https://codeburst.io/graphql-server-on-cloud-functions-for-firebase-ae97441399c0

3)https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c

谢谢。

【问题讨论】:

    标签: google-cloud-platform graphql google-cloud-functions apollo-server


    【解决方案1】:

    由于 Raj Chaudhary 的答案链接已失效,这里是 GraphQL Server 的官方 Google Cloud Function 集成:https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-cloud-functions

    您可以使用它在 Google Cloud Functions 上运行 Apollo GraphQL 服务器。

    【讨论】:

      【解决方案2】:

      感谢 James Hegedus 的出色工作,这成为可能。查看https://github.com/jthegedus/firebase-gcp-examples/tree/main/deprecated/gcp-functions-graphql 获取解决方案。

      【讨论】:

      • 答案中的死链接。
      • 链接也失效了
      猜你喜欢
      • 1970-01-01
      • 2017-08-03
      • 2018-02-23
      • 2019-02-03
      • 1970-01-01
      • 2017-12-08
      • 2023-03-28
      • 1970-01-01
      • 2018-11-18
      相关资源
      最近更新 更多