Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

[Doc] Fix null check in example #1012

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[Doc] Fix null check in example #1012

wants to merge 1 commit into from

Conversation

jyotman
Copy link

@jyotman jyotman commented Sep 30, 2020

The given example does not check if the user is null or undefined and would lead to an error -

Uncaught TypeError: Cannot read property 'dataValues' of null

@apollo-cla
Copy link

@jyotman: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants