mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-05-28 06:35:31 +08:00
Update resolvers.md (#494)
## Write resolvers on types
the type in the schema should be Mission not Mutation
_src/schema.js_
```js
type Mission{
# ... with rest of schema
missionPatch(mission: String, size: PatchSize): String
}
```
This commit is contained in:
committed by
Jesse Rosenberger
parent
3e48c0b740
commit
6e722b255f
@@ -255,7 +255,7 @@ Mission: {
|
||||
|
||||
_src/schema.js_
|
||||
```js
|
||||
type Mutation {
|
||||
type Mission {
|
||||
# ... with rest of schema
|
||||
missionPatch(mission: String, size: PatchSize): String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user