GraphQL in the Web


#1

Hi,

Some questions about Realm+GraphQL:
I’m a bit confused, is this configuration meant for a website? or something like electron?
What happens when the user signs in on the web? will all his database be synced into an offline realm? If so does this database survive after the browser is closed?


#2

The GraphQL API is akin a REST API - you call certain endpoints and receive HTTP responses. Beyond that, if you (or the library you’re using) caches any of that data locally, it will be subject to whatever policies your code applies. Realm itself will not synchronize or store anything over the GraphQL API.

This API is intended to be used in environments where we don’t have native SDKs, such as the browser, but also python, ruby, etc. applications can use the API to read information stored in Realms on the server.