Skip to content

Commit

Permalink
magento/architecture#: GraphQl. Add a mutation for subscribe feature
Browse files Browse the repository at this point in the history
  • Loading branch information
atwixfirster committed Apr 4, 2020
1 parent 6885c7a commit da80fb4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type Mutation {
subscribeEmailToNewsletter(email: String!): SubscribeOutput @doc(description:"Adds an email into a newsletter subscription")
}

type SubscribeOutput {
success: Boolean! @doc(description: "Returns 'true' if an email has been added to newsletter successfully")
}

0 comments on commit da80fb4

Please sign in to comment.