Skip to content

Commit bf346d1

Browse files
Changed schema input and output, fixed bug with uniq type
1 parent 1a805d0 commit bf346d1

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")
6+
}
7+
8+
input SendEmailToFriendInput {
9+
product_id: Int!
10+
sender: SendEmailToFriendSenderInput!
11+
recipients: [SendEmailToFriendRecipientInput!]!
612
}
713

814
input SendEmailToFriendSenderInput {
9-
product_id: Int!
10-
sender: Sender!
11-
recipients: [Recipient!]!
15+
name: String!
16+
email: String!
17+
message: String!
1218
}
1319

14-
type Sender {
20+
input SendEmailToFriendRecipientInput {
21+
name: String!
22+
email: String!
23+
}
24+
25+
type SendEmailToFriendSender {
1526
name: String!
1627
email: String!
1728
message: String!
1829
}
1930

20-
type Recipient {
31+
type SendEmailToFriendRecipient {
2132
name: String!
2233
email: String!
2334
}
2435

2536
type SendEmailToFriendOutput {
26-
sender: Sender
27-
recipients: [Recipient]
28-
}
37+
sender: SendEmailToFriendSender
38+
recipients: [SendEmailToFriendRecipient]
39+
}

0 commit comments

Comments
 (0)