Skip to content Skip to sidebar Skip to footer

Apollo: Data / Mutation Prop Not Passed To Component

I have the following component with a query and a mutation, but my Component does not receive the data and the mutation prop. Am I doing something wrong or missing in my code? The

Solution 1:

You have used name to name the mutation prop SetNewPasswordMutation.

This means that you need to call it from your component like:

this.props.SetNewPasswordMutation(
  { variables: { password: model.password, token: this.props.token } })

Post a Comment for "Apollo: Data / Mutation Prop Not Passed To Component"