Skip to content

Commit

Permalink
Merge pull request #5146 from apollographql/eliminate-generated-cache…
Browse files Browse the repository at this point in the history
…-ids

Eliminate "generated" cache IDs to avoid normalizing objects without meaningful IDs.
  • Loading branch information
benjamn authored Aug 9, 2019
2 parents 2f1bc81 + 054eb7b commit 18c266d
Show file tree
Hide file tree
Showing 27 changed files with 799 additions and 1,522 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
{
"name": "apollo-cache-inmemory",
"path": "./packages/apollo-cache-inmemory/lib/bundle.cjs.min.js",
"maxSize": "5.05 kB"
"maxSize": "4.3 kB"
},
{
"name": "apollo-client",
"path": "./packages/apollo-client/lib/bundle.cjs.min.js",
"maxSize": "9.95 kB"
"maxSize": "9.9 kB"
},
{
"name": "apollo-utilities",
"path": "./packages/apollo-utilities/lib/bundle.cjs.min.js",
"maxSize": "4.2 kB"
"maxSize": "4.25 kB"
}
],
"lint-staged": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ Object {
"foo": Object {
"e": 4,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -29,10 +26,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -50,10 +44,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -71,10 +62,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -92,10 +80,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand All @@ -113,10 +98,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand All @@ -130,10 +112,7 @@ Object {
"foo": Object {
"e": 4,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -151,10 +130,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -172,10 +148,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -193,10 +166,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -214,10 +184,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand All @@ -235,10 +202,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand All @@ -252,10 +216,7 @@ Object {
"foo": Object {
"e": 4,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -273,10 +234,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -294,10 +252,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -315,10 +270,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"__ref": "bar",
},
},
}
Expand All @@ -336,10 +288,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand All @@ -357,10 +306,7 @@ Object {
"f": 5,
"g": 6,
"h": Object {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"__ref": "bar",
},
},
}
Expand Down
Loading

0 comments on commit 18c266d

Please sign in to comment.