Skip to content

Commit 4536863

Browse files
author
Valeriy Naida
authored
ENGCOM-3537: [260] Fixed bug with uniq type #262
2 parents 365e400 + b0fa475 commit 4536863

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

app/code/Magento/SendFriendGraphQl/etc/schema.graphqls

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,38 @@
22
# See COPYING.txt for license details.
33

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

8-
input SendEmailToFriendSenderInput {
9-
product_id: Int!
10-
sender: Sender!
11-
recipients: [Recipient!]!
8+
input SendEmailToFriendInput {
9+
product_id: Int!
10+
sender: SendEmailToFriendSenderInput!
11+
recipients: [SendEmailToFriendRecipientInput!]!
1212
}
1313

14-
type Sender {
14+
input SendEmailToFriendSenderInput {
1515
name: String!
1616
email: String!
1717
message: String!
1818
}
1919

20-
type Recipient {
20+
input SendEmailToFriendRecipientInput {
2121
name: String!
2222
email: String!
2323
}
2424

2525
type SendEmailToFriendOutput {
26-
sender: Sender
27-
recipients: [Recipient]
26+
sender: SendEmailToFriendSender
27+
recipients: [SendEmailToFriendRecipient]
28+
}
29+
30+
type SendEmailToFriendSender {
31+
name: String!
32+
email: String!
33+
message: String!
34+
}
35+
36+
type SendEmailToFriendRecipient {
37+
name: String!
38+
email: String!
2839
}

0 commit comments

Comments
 (0)