Skip to content

Commit

Permalink
fixed delete mutations (wrong model specified)
Browse files Browse the repository at this point in the history
  • Loading branch information
dheidemann committed Jul 20, 2024
1 parent c81c164 commit ca13e9d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 75 deletions.
12 changes: 6 additions & 6 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ mutation {
### `deleteEvent`
Deletes a list of events.
#### Arguments:
- `eventID: [Int!]!` - IDs of the event
- `id: [Int!]!` - IDs of the event

#### Example:
```graphql
mutation {
deleteEvent(eventID: [1, 2])
deleteEvent(id: [1, 2])
}
```

Expand Down Expand Up @@ -337,12 +337,12 @@ mutation {
### `deleteBuilding`
Deletes a list of buildings. *Note: This also deletes all rooms in the buildings*
#### Arguments:
- `buildingID: [Int!]!` - IDs of buildings
- `id: [Int!]!` - IDs of buildings

#### Example:
```graphql
mutation {
deleteBuilding(buildingID: [1, 2])
deleteBuilding(id: [1, 2])
}
```

Expand All @@ -367,13 +367,13 @@ mutation {
### `deleteRoom`
Deletes a room in a building.
#### Arguments:
- `roomNumber: String!` - Number of room
- `number: String!` - Number of room
- `buildingID: [Int!]!` - IDs of buildings

#### Example:
```graphql
mutation {
deleteRoom(roomNumber: "101", buildingID: 1)
deleteRoom(number: "101", buildingID: 1)
}
```

Expand Down
98 changes: 49 additions & 49 deletions server/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions server/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,18 @@ input NewRoomToEventLink {

type Mutation {
addRegistration(student: NewStudent!): String!
updateStudentAcceptedStatus(studentMail: String!, accepted: Boolean!): String!
updateStudentAcceptedStatus(mail: String!, accepted: Boolean!): String!
addTutor(tutor: NewTutor!): String!
updateTutor(tutorMail: String!, tutor: NewTutor!): String!
updateTutor(mail: String!, tutor: NewTutor!): String!
deleteUser(mail: [String!]!): String!
addEvent(event: NewEvent!): String!
updateEvent(eventID: Int!, event: NewEvent!): String!
deleteEvent(eventID: [Int!]!): String!
updateEvent(id: Int!, event: NewEvent!): String!
deleteEvent(id: [Int!]!): String!
addBuilding(building: NewBuilding!): String!
updateBuilding(buildingID: Int!, building: NewBuilding!): String!
deleteBuilding(buildingID: [Int!]!): String!
updateBuilding(id: Int!, building: NewBuilding!): String!
deleteBuilding(id: [Int!]!): String!
addRoom(room: NewRoom!): String!
deleteRoom(roomNumber: String!, buildingID: Int!): String!
deleteRoom(number: String!, buildingID: Int!): String!
addTopic(topic: NewTopic!): String!
deleteTopic(name: [String!]!): String!
addAvailableRoomToEvent(link: NewRoomToEventLink!): String!
Expand Down
Loading

0 comments on commit ca13e9d

Please sign in to comment.