diff --git a/docs/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx b/docs/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx index 221041d6f..92235f51d 100644 --- a/docs/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx +++ b/docs/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx @@ -343,7 +343,7 @@ export const PostMutation = extendType({ ```ts Mutation { - createDraft: Post -+ createDraft(title: String!, body: String!): Post ++ createDraft(title: String!, body: String!): Post! } ``` @@ -429,7 +429,7 @@ export const PostMutation = extendType({ ```ts type Mutation { - createDraft(body: String!, title: String!): Post + createDraft(body: String!, title: String!): Post! + publish(draftId: Int!): Post } ``` @@ -496,8 +496,8 @@ export const PostQuery = extendType({ ```ts type Query { - drafts: [Post!] -+ posts: [Post!] + drafts: [Post]! ++ posts: [Post] } ```