apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Fix a wrong schema example in docs/source/tutorial/mutations.mdx

Open junseinagao opened this issue 3 years ago • 1 comments

About

I found the mistake in a page Update data with mutations in full stack tutorial.

Fixed point

Mutation's login return String but it must return User. The correct schema is defined in a page Build a schema

# YOU DON'T NEED TO COPY THIS.
type Mutation {
  bookTrips(launchIds: [ID]!): TripUpdateResponse!
  cancelTrip(launchId: ID!): TripUpdateResponse!
- login(email: String): String # login token
+ login(email: String): User # login token
}

junseinagao avatar Mar 09 '22 00:03 junseinagao

@junseinagao: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

apollo-cla avatar Mar 09 '22 00:03 apollo-cla