Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
chore(docs): tutorial typo nullable schema defined (graphql-nexus#675)
Browse files Browse the repository at this point in the history
Co-authored-by: 이정근 <junggelee@ebay.com>
  • Loading branch information
2 people authored and 9renpoto committed Dec 4, 2020
1 parent 93f4d5d commit c654c5e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export const PostMutation = extendType({
```ts
Mutation {
- createDraft: Post
+ createDraft(title: String!, body: String!): Post
+ createDraft(title: String!, body: String!): Post!
}
```
Expand Down Expand Up @@ -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
}
```
Expand Down Expand Up @@ -496,8 +496,8 @@ export const PostQuery = extendType({

```ts
type Query {
drafts: [Post!]
+ posts: [Post!]
drafts: [Post]!
+ posts: [Post]
}
```

Expand Down

0 comments on commit c654c5e

Please sign in to comment.