Skip to content

Commit cce9819

Browse files
author
Gio
committed
feat(notes): update GraphQl schema
1 parent e83505f commit cce9819

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PocketKit/Sources/PocketGraph/Schema/InputObjects/EditNoteTitleInput.graphql.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct EditNoteTitleInput: InputObject {
1212

1313
public init(
1414
id: ID,
15-
title: String,
15+
title: GraphQLNullable<String> = nil,
1616
updatedAt: GraphQLNullable<ISOString> = nil
1717
) {
1818
__data = InputDict([
@@ -28,8 +28,9 @@ public struct EditNoteTitleInput: InputObject {
2828
set { __data["id"] = newValue }
2929
}
3030

31-
/// The new title for the note (can be an empty string)
32-
public var title: String {
31+
/// The new title for the note. If null, sets the title
32+
/// field to null (deletes it).
33+
public var title: GraphQLNullable<String> {
3334
get { __data["title"] }
3435
set { __data["title"] = newValue }
3536
}

0 commit comments

Comments
 (0)