We have next.js web app using Apollo to fetch data and have an use case to prelaod data in our RSC for multiple queries . I see that the documentation has a section on https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs#preloading-data-in-rsc-for-usage-in-client-components .
According to this it takes a single query document . Is there any way we can pass multiple queries as args ?
<PreloadQuery
query={QUERY}
variables={{
foo: 1,
}}
>
<Suspense fallback={<>loading</>}>
<ClientChild />
</Suspense>
</PreloadQuery>
We have next.js web app using Apollo to fetch data and have an use case to prelaod data in our RSC for multiple queries . I see that the documentation has a section on https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs#preloading-data-in-rsc-for-usage-in-client-components .
According to this it takes a single query document . Is there any way we can pass multiple queries as args ?