Offline first webapp

Hey,
I’m trying to program offline first webapp (pwa).
Ideally, I want the web app to know if it has internet connection and if not, I want it to store my mutation and push them to the server when it has connection once again.
Does apollo offer that?
If yes - I would like reference to the docs.
If not - is there any external package/ tutorial
Thanks!

You can use window.navigator?.onLine to find out if your app is online.