Creating Advance Apollo-Client in iOS

Chandan
1 min readMar 3, 2022

Yeh! I know this is very painful process to create advance Apolo-Client.

No worries 😉, I am here ok. let’s take a long breath then release

Ok, am not teach you meditation 🧘‍♀️ don't worry. 😁😁😁

Just create a new swift file in you project ok, and set the file name is Network.swift.

and just copy this code blow down. and paste your code over Network.swift file.

In this code you can see Line no. → 12 & 20.

In the line no. 12 → you need to assign your Authorisation Token in accessToken variable. and if you don't have any access token then no worry, just leave the variable.

In the line no. 20 → you need to assign your Endpoint URL in endpointURL variable. And if you don’t have any endpoint URL then my friend no worry contact your manager and ask endpoint url, without endpoint you will not fetch you query or you will not perform your mutation. 😎

Thanks Dear Friend For Reading This.

--

--