Remove unnecessary schema change

Other it's very confusing on why this change is needed
This commit is contained in:
Zhigang Fang
2019-08-30 11:48:04 +08:00
committed by GitHub
parent 596d075a04
commit e3d3019c2e

View File

@@ -253,14 +253,6 @@ Mission: {
},
```
_src/schema.js_
```js
type Mission {
# ... with rest of schema
missionPatch(mission: String, size: PatchSize): String
}
```
The first argument passed into our resolver is the parent, which refers to the mission object. The second argument is the size we pass to our `missionPatch` field, which we use to determine which property on the mission object we want our field to resolve to.
Now that we know how to add resolvers on types other than `Query` and `Mission`, let's add some more resolvers to the `Launch` and `User` types. Copy this code into your resolver map: