NextJS, Realm, Apollo Example?

Hello all,

Our project which we actually developed in ReactJS, we are currently moving to NextJS.

Now we have the problem that our original method in ReactJS using Realm and Apollo(GraphQL) to retrieve data does not work in NextJS due to the need of SSG and SSR.

After a long time of trying and searching for examples and introductions, we unfortunately haven’t found a solution yet. Now the question: Has anyone already done this or an example project that builds on NextJS, Realm and Apollo(GraphQL)?

In case of need we can also use the SWR library. But we haven’t found any helpful (including SSG and SSR) and official examples explicitly for Realm.