Skip to content

Commit

Permalink
Changed schema input and output, fixed bug with uniq type
Browse files Browse the repository at this point in the history
  • Loading branch information
VoronoyAlexandr committed Nov 21, 2018
1 parent 1a805d0 commit bf346d1
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions app/code/Magento/SendFriendGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,38 @@
# See COPYING.txt for license details.

type Mutation {
sendEmailToFriend (input: SendEmailToFriendSenderInput): SendEmailToFriendOutput @resolver(class: "\\Magento\\SendFriendGraphQl\\Model\\Resolver\\SendEmailToFriend") @doc(description:"Recommends Product by Sending Single/Multiple Email")
sendEmailToFriend (input: SendEmailToFriendInput): SendEmailToFriendOutput @resolver(class: "\\Magento\\SendFriendGraphQl\\Model\\Resolver\\SendEmailToFriend") @doc(description:"Recommends Product by Sending Single/Multiple Email")
}

input SendEmailToFriendInput {
product_id: Int!
sender: SendEmailToFriendSenderInput!
recipients: [SendEmailToFriendRecipientInput!]!
}

input SendEmailToFriendSenderInput {
product_id: Int!
sender: Sender!
recipients: [Recipient!]!
name: String!
email: String!
message: String!
}

type Sender {
input SendEmailToFriendRecipientInput {
name: String!
email: String!
}

type SendEmailToFriendSender {
name: String!
email: String!
message: String!
}

type Recipient {
type SendEmailToFriendRecipient {
name: String!
email: String!
}

type SendEmailToFriendOutput {
sender: Sender
recipients: [Recipient]
}
sender: SendEmailToFriendSender
recipients: [SendEmailToFriendRecipient]
}

0 comments on commit bf346d1

Please sign in to comment.