diff --git a/website/docs/guided-tour/reusing-cached-data/filling-in-missing-data.md b/website/docs/guided-tour/reusing-cached-data/filling-in-missing-data.md index 1a48eb06d389a..65988c2b15b8e 100644 --- a/website/docs/guided-tour/reusing-cached-data/filling-in-missing-data.md +++ b/website/docs/guided-tour/reusing-cached-data/filling-in-missing-data.md @@ -54,7 +54,7 @@ const missingFieldHandlers = [ handle(field, record, argValues): ?string { if ( record != null && - record.__typename === ROOT_TYPE && + record.getType() === ROOT_TYPE && field.name === 'user' && argValues.hasOwnProperty('id') ) { @@ -63,7 +63,7 @@ const missingFieldHandlers = [ } if ( record != null && - record.__typename === ROOT_TYPE && + record.getType() === ROOT_TYPE && field.name === 'story' && argValues.hasOwnProperty('story_id') ) {