Skip to content

Commit

Permalink
update readme (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
dheidemann committed Jul 21, 2024
1 parent 9edefff commit 6a2f420
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,30 +377,31 @@ mutation {
}
```

### `addTopic`
Adds a new topic.
### `addLabel`
Adds a new event label. `kind` takes `TOPIC` or `EVENT_TYPE` as value.
#### Arguments:
- `topic: NewTopic!` - Details of the new topic.
- `label: NewLabel!` - Details of the new label.

#### Example:
```graphql
mutation {
addTopic(topic: {
addLabel(topic: {
name: "Physics"
color: "#FF0000"
kind: TOPIC
})
}
```

### `deleteTopic`
Deletes a list of topics. *Note: This also deletes all events related to it*
### `deleteLabel`
Deletes a list of labels. *Note: This also deletes all events related to it*
#### Arguments:
- `name: [String!]!` - Names of topics
- `name: [String!]!` - Names of labels

#### Example:
```graphql
mutation {
deleteTopic(name: "Math")
deleteLabel(name: "Math")
}
```

Expand Down

0 comments on commit 6a2f420

Please sign in to comment.