apollo-invalidation-policies
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
1.0.0-beta11 (Dan Reynolds) | ||
- Default the `readPolicy` function in the policy action to use the ROOT_QUERY similarly to how the policies module does in apollo/client | ||
1.0.0-beta10 (Dan Reynolds) | ||
@@ -2,0 +6,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
} | ||
return this.policies.readField(typeof fieldNameOrOptions === "string" | ||
const options = typeof fieldNameOrOptions === "string" | ||
? { | ||
@@ -66,3 +66,7 @@ fieldName: fieldNameOrOptions, | ||
} | ||
: fieldNameOrOptions, { | ||
: fieldNameOrOptions; | ||
if (void 0 === options.from) { | ||
options.from = { __ref: 'ROOT_QUERY' }; | ||
} | ||
return this.policies.readField(options, { | ||
store: this.entityStoreRoot, | ||
@@ -69,0 +73,0 @@ }); |
{ | ||
"name": "apollo-invalidation-policies", | ||
"version": "1.0.0-beta10", | ||
"version": "1.0.0-beta11", | ||
"description": "An extension to the InMemoryCache from Apollo for type-based invalidation policies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
566122
0.08%1609
0.25%