| 2 | |
| 3 | const CACHEABLE_DIRECTIVE_REGEX = /@\bcacheable\b/ |
| 4 | export const isRequestCacheable = req => { |
| 5 | const queryText = req.operation?.text |
| 6 | |
| 7 | return queryText && CACHEABLE_DIRECTIVE_REGEX.test(queryText) |
| 8 | } |
| 9 | |
| 10 | export const hasNoCacheParamPresent = url => { |
| 11 | const queryString = url?.split("?")[1] |
no outgoing calls
no test coverage detected