Join Slack
Powered by
<@U7DJ9B26B> //I think the error occurs when tryin...
# prisma-whats-new
w
Waweru
01/17/2018, 12:08 PM
@Ben
//I think the error occurs when trying to initialize the Apollo Client const client = new ApolloClient({ networkInterface: createNetworkInterface({ uri: '
https://api.graph.cool/simple/v1/ciwce5xw82kh7017179gwzn7q
', }), })
b
Ben
01/17/2018, 12:13 PM
which version of apollo client are you installing? v2 has a slightly different API, so that tutorial might be out of date
w
Waweru
01/17/2018, 12:16 PM
Apollo-client version 2.2.0
Waweru
01/17/2018, 12:18 PM
Unfortunately I can't seem to find any other tutorials on apollo + react-native integration. Most of them are using react.
b
Ben
01/17/2018, 12:20 PM
I'm pretty sure it will be exactly the same - try initiating the Apollo Client like this:
https://github.com/apollographql/apollo-client#usage
w
Waweru
01/17/2018, 12:22 PM
Thanks. Let me try it.
Waweru
01/17/2018, 1:42 PM
I've tried my best to follow the link you gave me, but it didn't work. Still getting errors
Waweru
01/17/2018, 1:45 PM
Unfortunately there's no documentary or tutorial to solve this.
Waweru
01/17/2018, 1:45 PM
Or rather, I can't seem to find one.
3
Views
Open in Slack
Previous
Next