Update GQL

This commit is contained in:
Jackson Harper 2023-07-06 16:30:35 -07:00
parent 35e6e3d7ae
commit 982349cef2
4 changed files with 687 additions and 14 deletions

View file

@ -43,7 +43,7 @@ extension DataService {
let mutation = Selection.Mutation {
try $0.createLabel(
input: InputObjects.CreateLabelInput(
color: label.color,
color: OptionalArgument(label.color),
description: OptionalArgument(label.labelDescription),
name: label.name
),

View file

@ -43,7 +43,7 @@ extension DataService {
let mutation = Selection.Mutation {
try $0.setLabels(
input: InputObjects.SetLabelsInput(
labelIds: labelIDs,
labelIds: OptionalArgument(labelIDs),
pageId: itemID
),
selection: selection

View file

@ -41,7 +41,7 @@ public extension DataService {
try $0.setLabelsForHighlight(
input: InputObjects.SetLabelsForHighlightInput(
highlightId: highlightID,
labelIds: labelIDs
labelIds: OptionalArgument(labelIDs)
),
selection: selection
)