- using graphql example by GraphQL-Pokemon
- Make feature component by using relay fragment (like PokemonDetail.res)
- Write page by rescript. (Warning; rescript file name should be unique by your project) (/pages/pokemon/[pokemonEnum].res)
- In page, make query and connect using feature fragments
- Make environment and execute query and return dehydrate store data at
getServerSideProps
(This process is configure by RelayEnv.SSR.make function and hydrateRelayStore.ts) - Execute query at page renderer, pass the
fragmentRefs
to feature component - complete!