【问题标题】:Linking AWS Amplify to Apollo ClientLinking AWS Amplify to Apollo Client
【发布时间】:2022-11-20 20:34:08
【问题描述】:

I am new to Apollo and Graph QL. I have my auth and DB setup with AWS Amplify for a React Native Typescript app.

I want to use Apollo instead of Redux as I have read that is easier and better than Redux obviously this is a personal preference. I want to link my AWS to the Apollo Client.

Can you help me with what URI: to link here so it will get the logged in user information? To store it locally.

const client = new ApolloClient({
  uri: 'https://api.graph.cool/simple/v1/cixmkt2ul01o01902vlq3jvrj',
  cache: new InMemoryCache()
})

【问题讨论】:

    标签: aws-amplify apollo-client react-typescript


    【解决方案1】:

    You need to add url and x-api-key from AWS amplify configure method

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-02
      • 2021-01-15
      • 2021-06-28
      • 2019-04-20
      • 2020-07-27
      • 2018-10-27
      • 1970-01-01
      • 2020-05-10
      相关资源
      最近更新 更多