From 6a2f420800811f4770a2250ec6611e610539f4a8 Mon Sep 17 00:00:00 2001 From: Daniel Heidemann Date: Sun, 21 Jul 2024 23:07:09 +0200 Subject: [PATCH] update readme (#49) --- server/README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/server/README.md b/server/README.md index 2acdaf7..bbd1a50 100644 --- a/server/README.md +++ b/server/README.md @@ -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") } ```