davidepalazzo
09/27/2017, 4:41 AMcampaign
field is mentioned in the error message.chandlervdw
09/27/2017, 1:26 PMconst createDonationMutation = gql`
mutation($amount: Int!, $campaign: ID!, $paymentInfo: Json!, $email: String) {
createDonation(
amount: $amount
campaignId: $campaign
paymentInfo: $paymentInfo
email: $email
) {
id
isPaid
}
}
`;
and here’s the invocation
createDonation({
email: token.email,
campaign: id,
paymentInfo: token,
amount: this.state.amount
});
I’m pausing in the debugger and I definitely have that data going in…chandlervdw
09/27/2017, 1:27 PMchandlervdw
09/27/2017, 1:44 PMDonation
and Campaign
and it should’ve been many-to-one