export const getServerSideProps = async () => {
const apolloClient = initializeApollo();
await apolloClient.query({
query: FilmsDocument,
});
await apolloClient.query({
query: PlanetsDocument,
});
return addApolloState(apolloClient, {
props: {},
});
};
export const getServerSideProps = async () => {
const apolloClient = initializeApollo();
await apolloClient.query({
query: FilmsDocument,
});
await apolloClient.query({
query: PlanetsDocument,
});
return addApolloState(apolloClient, {
props: {},
});
};