Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const memoize = (fn) => {
} else {
// To handle cycles in schema types put a reference to the mocked field in
// the cache before attempting to compute its properties.
const result = {}
const result = {
__typename: type
}
cache[type] = result
const mock = fn(type, customMock, schema)
Object.assign(result, mock)
Expand Down