remove required parking structure and add stub resolvers

This commit is contained in:
2025-04-08 16:28:21 -07:00
parent b2e6acfefa
commit 78514c5b8a
2 changed files with 9 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ type System {
# TODO: Implement these in system resolvers # TODO: Implement these in system resolvers
parkingStructures: [ParkingStructure!] parkingStructures: [ParkingStructure!]
parkingStructure(id: ID): ParkingStructure! parkingStructure(id: ID): ParkingStructure
} }
type ParkingStructure { type ParkingStructure {

View File

@@ -70,13 +70,19 @@ export const SystemResolvers: Resolvers<ServerContext> = {
return shuttle; return shuttle;
}, },
shuttles: async (parent, args, contextValue, _info) => { shuttles: async (parent, _args, contextValue, _info) => {
const system = contextValue.findSystemById(parent.id); const system = contextValue.findSystemById(parent.id);
if (!system) { if (!system) {
return []; return [];
} }
return await system.shuttleRepository.getShuttles(); return await system.shuttleRepository.getShuttles();
} },
parkingStructures: async (_parent, _args, _contextValue, _info) => {
return [];
},
parkingStructure: async (_parent, _args, _contextValue, _info) => {
return null;
},
}, },
} }