简体   繁体   English

将 AWS AppSync 用作 GraphQL 服务器

[英]Use AWS AppSync as a GraphQL Server

I am trying to connect my react native mobile app with graphql server.我正在尝试将我的 react 本机移动应用程序与 graphql 服务器连接起来。 For that, as the graphql client I am using Apollo Client .为此,作为 graphql 客户端,我使用的是Apollo Client I hope to use AWS services and, I have a problem in selecting the suitable graphql server.我希望使用 AWS 服务,但在选择合适的 graphql 服务器时遇到了问题。

Can I use AWS AppSync instead of using a separate GraphQL server such as ApolloServer , Express GraphQL etc.我可以使用 AWS AppSync 而不是使用单独的 GraphQL 服务器,例如ApolloServerExpress GraphQL等吗?

Yes, you can use AWS AppSync as a GraphQL server on AWS.是的,您可以将 AWS AppSync 用作 AWS 上的 GraphQL 服务器。 AWS AppSync is an AWS service for creating your fully managed GraphQL API layers. AWS AppSync 是一项 AWS 服务,用于创建您的完全托管的 GraphQL API 层。 Since, it is a managed service, which means you don't need to worry about provisioning a server for your backend.由于它是一项托管服务,这意味着您无需担心为后端配置服务器。

I would suggest you to use Serverless framework to manage and deploy your AppSync application.我建议您使用无服务器框架来管理和部署您的 AppSync 应用程序。 Here is the link for you to get started and will probably give you a good idea how to use Serverless for AppSync applications.这是您开始使用的链接,可能会让您很好地了解如何将 Serverless 用于 AppSync 应用程序。

https://www.serverless.com/guides/aws-appsync https://www.serverless.com/guides/aws-appsync

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM