apollo-invalidation-policies
Advanced tools
Comparing version
@@ -0,2 +1,5 @@ | ||
1.0.0-beta8 (Dan Reynolds) | ||
- Add test for Write-on-Write policies where the mutation has arguments and fix the Readme to illustrate how to correctly write the invalidation policy in that case | ||
1.0.0-beta7 (Dan Reynolds) | ||
@@ -3,0 +6,0 @@ |
{ | ||
"name": "apollo-invalidation-policies", | ||
"version": "1.0.0-beta7", | ||
"version": "1.0.0-beta8", | ||
"description": "An extension to the InMemoryCache from Apollo for type-based invalidation policies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -110,3 +110,7 @@  | ||
[storeFieldName]: (employeesResponse) => { | ||
const createdEmployeeResponse = readField(parent.storeFieldName, parent.ref); | ||
const createdEmployeeResponse = readField({ | ||
fieldName: parent.fieldName, | ||
args: parent.variables, | ||
ref: parent.ref, | ||
}); | ||
return { | ||
@@ -113,0 +117,0 @@ ...employeesResponse, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
560420
0.06%280
1.45%