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
There is a property shouldCacheResult in responseCache plugin.
I'm trying to use an example from the doc: shouldCacheResult: "result.errors.length > 0"
It produces result is undefined error. At the same time I'm able to reference other variables, e.g. process.
Any tips on how to access result parameter in shouldCacheResult?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
There is a property
shouldCacheResult
inresponseCache
plugin.I'm trying to use an example from the doc:
shouldCacheResult: "result.errors.length > 0"
It produces
result is undefined
error. At the same time I'm able to reference other variables, e.g.process
.Any tips on how to access
result
parameter inshouldCacheResult
?Beta Was this translation helpful? Give feedback.
All reactions