diff options
Diffstat (limited to 'src/main/webui')
| -rw-r--r-- | src/main/webui/src/gql/labels.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/webui/src/gql/labels.ts b/src/main/webui/src/gql/labels.ts new file mode 100644 index 0000000..801e24b --- /dev/null +++ b/src/main/webui/src/gql/labels.ts @@ -0,0 +1,21 @@ +import { graphql } from "./conf/gql"; + +export const queryAllLabels = graphql(` + query allLabels { + allLabels { + id + title + color + } + } +`); + +export const mutationSyncLabels = graphql(` + mutation syncLabels($labels: [PantryItemLabelInput]) { + syncLabels(labels: $labels) { + id + title + color + } + } +`); |
