运行 Google 云函数上的 Apollo GraphQL 服务器
Run Apollo GraphQL Server on Google Cloud Functions
我想在 Google Cloud Functions 上 运行 Apollo GraphQL 服务器。它基本上归结为 运行 我想用不同的路由连接一个 Express 服务器。有可能吗?如果有的话怎么办?请注意,我不希望将任何 Firebase 库用于此处突出显示的内容:
1)
2) https://codeburst.io/graphql-server-on-cloud-functions-for-firebase-ae97441399c0
3) https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c
谢谢。
感谢 James Hegedus 的出色工作,这成为可能。查看 https://github.com/jthegedus/firebase-gcp-examples/tree/main/deprecated/gcp-functions-graphql 的解决方案。
由于 Raj Chaudhary 的回答 link 已失效,这里是 GraphQL Server 的官方 Google Cloud Function 集成:https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-cloud-functions
您可以使用它 运行 Google Cloud Functions 上的 Apollo GraphQL 服务器。
我想在 Google Cloud Functions 上 运行 Apollo GraphQL 服务器。它基本上归结为 运行 我想用不同的路由连接一个 Express 服务器。有可能吗?如果有的话怎么办?请注意,我不希望将任何 Firebase 库用于此处突出显示的内容:
1)
2) https://codeburst.io/graphql-server-on-cloud-functions-for-firebase-ae97441399c0
3) https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c
谢谢。
感谢 James Hegedus 的出色工作,这成为可能。查看 https://github.com/jthegedus/firebase-gcp-examples/tree/main/deprecated/gcp-functions-graphql 的解决方案。
由于 Raj Chaudhary 的回答 link 已失效,这里是 GraphQL Server 的官方 Google Cloud Function 集成:https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-cloud-functions
您可以使用它 运行 Google Cloud Functions 上的 Apollo GraphQL 服务器。