【问题标题】:Is there an example where the Apollo client and the Apollo server are used together有没有一起使用 Apollo 客户端和 Apollo 服务器的例子
【发布时间】:2018-01-30 19:49:47
【问题描述】:

我还没有找到 Apollo 客户端和 apollo 服务器一起使用的例子。我需要一个样本来更好地学习和理解。

【问题讨论】:

    标签: graphql apollo react-apollo apollo-client apollo-server


    【解决方案1】:

    我建议你应该使用 react starter kit

    https://github.com/kriasoft/react-starter-kit

    检查分支:feature/apollo

    有服务器和客户端。

    【讨论】:

    • 谢谢,我想要一个同时使用 apollo 服务器和 apollo 客户端的示例。
    【解决方案2】:

    是的,您是使用客户端和服务器的完整教程,涵盖了您使用 apollo 开发应用程序所需的所有内容:

    Part 1 (this part): Setting up a simple client
        https://dev-blog.apollodata.com/full-stack-react-graphql-tutorial-582ac8d24e3b
    
    Part 2: Setting up a simple server
        https://dev-blog.apollodata.com/react-graphql-tutorial-part-2-server-99d0528c7928
    
    Part 3: Writing mutations and keeping the client in sync
        https://dev-blog.apollodata.com/react-graphql-tutorial-mutations-764d7ec23c15
    
    Part 4: Optimistic UI and client side store updates
        https://dev-blog.apollodata.com/tutorial-graphql-mutations-optimistic-ui-and-store-updates-f7b6b66bf0e2
    
    
    Part 5: Input Types and Custom Cache Resolvers
        https://dev-blog.apollodata.com/tutorial-graphql-input-types-and-client-caching-f11fa0421cfd
    
    Part 6: Subscriptions on the server
        https://dev-blog.apollodata.com/tutorial-graphql-subscriptions-server-side-e51c32dc2951
    

    【讨论】:

    • 你能让这些链接可点击吗?
    【解决方案3】:

    这似乎是一个全面、易于学习的全栈 Apollo GraphQL 教程,同时使用 Apollo Server 和 Apollo Client...没有 Express,没有 Redux,全是 Apollo。

    https://developer-log.netlify.com/full-stack-apollo-graphql-tutorial-pt-1-setup/

    免责声明:这是我的教程 :)

    【讨论】:

      猜你喜欢
      • 2021-08-13
      • 2020-06-12
      • 1970-01-01
      • 2016-08-31
      • 2021-02-05
      • 2018-01-20
      • 2019-09-17
      • 2023-04-02
      • 2019-07-25
      相关资源
      最近更新 更多