diff --git a/src/server/types/User.js b/src/server/types/User.js index 07d6cd1..88190fb 100644 --- a/src/server/types/User.js +++ b/src/server/types/User.js @@ -53,6 +53,10 @@ const resolvers = { const neopetsConnection = await neopetsConnectionLoader.load( user.contactNeopetsConnectionId ); + if (!neopetsConnection) { + return null; + } + return neopetsConnection.neopetsUsername; },