diff --git a/src/server/types/Outfit.js b/src/server/types/Outfit.js index b2350f9..ba2b00f 100644 --- a/src/server/types/Outfit.js +++ b/src/server/types/Outfit.js @@ -70,7 +70,7 @@ const resolvers = { }, creator: async ({ id }, _, { outfitLoader }) => { const outfit = await outfitLoader.load(id); - return { id: outfit.userId }; + return outfit.userId ? { id: outfit.userId } : null; }, }, Query: {