Closed fev4 closed 5 years ago
Hmm my bad, this had nothing to do with the graphql-react
, just didn't know how to properly write the query.
Here's I guess the correct syntax:
mutation SubscribeToMarketing($sanitizedemail: String!) {
mailchimpAddContact(params: { email: $sanitizedemail }) {
email
}
dbCreateUser(params: { email: $sanitizedemail }) {
email
}
}
The resulting data response will contain two objects with the names given, in this case, mailchimpAddContact
and dbCreateUser
respectively.
Hope this helps someone else.
This is somewhat what I want to achieve
What am I missing to make it work with
graphql-react
?I'm a little lost on this, any help is appreciated
Cheers