fix some bugs and enhance error handling

This commit is contained in:
Eng. Elias
2024-03-16 00:40:14 +04:00
parent 79cf073658
commit 7f2315e4fd
5 changed files with 35 additions and 41 deletions

View File

@@ -50,6 +50,12 @@ const typeDefs = `#graphql
result: String
}
type RunMissionResult {
result: String
error: Boolean
message: String
}
enum MissionProcess {
SEQUENTIAL
HIERARCHICAL
@@ -103,7 +109,7 @@ const typeDefs = `#graphql
deleteMission(id: Int!): DeleteOutput
runMission(id: Int!): Mission
runMission(id: Int!): RunMissionResult
}
`;