Skip to content

Commit cc380c1

Browse files
docs: define empty Mutation type in GraphQL schema for proper structure
1 parent 65efc61 commit cc380c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ type Query {
125125
greeting(name: String!): String!
126126
}
127127

128-
type Mutation
128+
type Mutation {
129+
_empty: String
130+
}
129131
```
130132

131133
### Step 4: Create Your First Resolver

0 commit comments

Comments
 (0)