From 78514c5b8a01fea130bae6e406514c03078ff2a3 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Tue, 8 Apr 2025 16:28:21 -0700 Subject: [PATCH] remove required parking structure and add stub resolvers --- schema.graphqls | 2 +- src/resolvers/SystemResolvers.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/schema.graphqls b/schema.graphqls index c97987c..4e3c22d 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -10,7 +10,7 @@ type System { # TODO: Implement these in system resolvers parkingStructures: [ParkingStructure!] - parkingStructure(id: ID): ParkingStructure! + parkingStructure(id: ID): ParkingStructure } type ParkingStructure { diff --git a/src/resolvers/SystemResolvers.ts b/src/resolvers/SystemResolvers.ts index de8e3b0..4f5205f 100644 --- a/src/resolvers/SystemResolvers.ts +++ b/src/resolvers/SystemResolvers.ts @@ -70,13 +70,19 @@ export const SystemResolvers: Resolvers = { return shuttle; }, - shuttles: async (parent, args, contextValue, _info) => { + shuttles: async (parent, _args, contextValue, _info) => { const system = contextValue.findSystemById(parent.id); if (!system) { return []; } return await system.shuttleRepository.getShuttles(); - } + }, + parkingStructures: async (_parent, _args, _contextValue, _info) => { + return []; + }, + parkingStructure: async (_parent, _args, _contextValue, _info) => { + return null; + }, }, }