You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{cacheControlFromInfo}from'@apollo/cache-control-types';builder.queryField('someField',(t)=>{returnt.field({subGraphs: ['subgraph1'],type: MyResponse,args: {id: t.arg({type: 'ID',}),},resolve: (parent,{ id },context,info)=>{// does not work// @ts-expect-errorinfo.cacheControl.setCacheHint({maxAge: 123});// does not work eithercacheControlFromInfo(info).setCacheHint({maxAge: 123});returnvalue;},});});
If I remove pothos as the schema generator it works. #782 didn't solve it for me.
Could this be an issue?
The text was updated successfully, but these errors were encountered:
I'm trying to get Apollo server 4's server side caching feature via
cachecontrol
headers to work, as described on https://www.apollographql.com/docs/apollo-server/performance/caching/#in-your-resolvers-dynamic but Pothos seems to interfere.If I remove pothos as the schema generator it works.
#782 didn't solve it for me.
Could this be an issue?
The text was updated successfully, but these errors were encountered: