diff --git a/src/server/types/User.js b/src/server/types/User.js index 43a253f..147805a 100644 --- a/src/server/types/User.js +++ b/src/server/types/User.js @@ -28,6 +28,10 @@ const resolvers = { { userLoader, neopetsConnectionLoader } ) => { const user = await userLoader.load(id); + if (user.contactNeopetsConnectionId == null) { + return null; + } + const neopetsConnection = await neopetsConnectionLoader.load( user.contactNeopetsConnectionId );