Skip to content

Commit

Permalink
Merge pull request apollographql#684 from csoto09/patch-1
Browse files Browse the repository at this point in the history
Change "cancelTrips" to "cancelTrip" on line 391
  • Loading branch information
Stephen Barlow authored Dec 4, 2019
2 parents d4904ae + b6e307f commit 127f388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorial/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Mutation: {
},
```

Both `bookTrips` and `cancelTrips` must return the properties specified on our `TripUpdateResponse` type from our schema, which contains a success indicator, a status message, and an array of launches that we've either booked or cancelled. The `bookTrips` mutation can get tricky because we have to account for a partial success where some launches could be booked and some could fail. Right now, we're simply indicating a partial success in the `message` field to keep it simple.
Both `bookTrips` and `cancelTrip` must return the properties specified on our `TripUpdateResponse` type from our schema, which contains a success indicator, a status message, and an array of launches that we've either booked or cancelled. The `bookTrips` mutation can get tricky because we have to account for a partial success where some launches could be booked and some could fail. Right now, we're simply indicating a partial success in the `message` field to keep it simple.

### Run mutations in the playground

Expand Down

0 comments on commit 127f388

Please sign in to comment.