Hi, I am struggling to use the maligun function t...
# prisma-whats-new
j
Hi, I am struggling to use the maligun function to send automated welcome emails with iOS and Apollo client. As soon as I try using variables it does not work. When I use the following mutation with hardcoded values, it works: mutation SendWelcomeEmail { sendMailgunEmail( tag: "TEST" from: "xxx@yyyyyy.com" to: "user@email.com" subject: "TEST" text: “THIS IS A TEST” ) { success } } let sendWelcomeEmailMutation = SendWelcomeEmailMutation() apollo.perform(mutation: sendWelcomeEmailMutation) If I try to write a mutation with variables: mutation SendWelcomeEmail($from: String!, $to: String!) { sendMailgunEmail( tag: "TEST" from: $from to: $to subject: "TEST" text: “THIS IS A TEST” ) { success } } let sendWelcomeEmailMutation = SendWelcomeEmailMutation(from: "xxx@yyyyyy.com" , to: "user@email.com") apollo.perform(mutation: sendWelcomeEmailMutation) it no longer works. Any idea? Many thanks for your continuous support. Really helpful for an inexperienced developer like me. Happy holiday season.