Skip to content

Commit

Permalink
Restore non-enumerability of resultFields[ID_KEY].
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jun 5, 2018
1 parent 04b1e06 commit e92f839
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/apollo-cache-inmemory/src/readFromStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ function resultMapper(resultFields: any, idValue: IdValueWithPreviousResult) {
}
}

resultFields[ID_KEY] = idValue.id;
Object.defineProperty(resultFields, ID_KEY, {
enumerable: false,
configurable: true,
writable: false,
value: idValue.id,
});

return resultFields;
}
Expand Down

0 comments on commit e92f839

Please sign in to comment.