Skip to content

Commit 84ab665

Browse files
authored
Fix incorrect schema example in Mutation page, add notes regarding nested input types (#3806)
* Update mutations.md * Update input-object-types.md * Update mutations.md
1 parent 3b3c949 commit 84ab665

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

website/src/docs/hotchocolate/defining-a-schema/input-object-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,5 @@ public class Startup
154154

155155
</ExampleTabs.Schema>
156156
</ExampleTabs>
157+
158+
⚠ Object types nested inside of an input object type need to also be declared as input types.

website/src/docs/hotchocolate/defining-a-schema/mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class Startup
119119
addBook(input: BookInput): Book
120120
}
121121
122-
type BookInput {
122+
input BookInput {
123123
title: String
124124
author: String
125125
}

0 commit comments

Comments
 (0)