Skip to content

Commit

Permalink
ENGCOM-3537: [260] Fixed bug with uniq type #262
Browse files Browse the repository at this point in the history
 - Merge Pull Request magento/graphql-ce#262 from VoronoyAlexandr/graphql-ce:260_schema_must_contain_unique_named_types_but_contains_multiple_types_named
 - Merged commits:
   1. bf346d1
   2. 6e32307
  • Loading branch information
magento-engcom-team committed Nov 22, 2018
2 parents 365e400 + 6e32307 commit b0fa475
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 SendEmailToFriendSenderInput {
product_id: Int!
sender: Sender!
recipients: [Recipient!]!
input SendEmailToFriendInput {
product_id: Int!
sender: SendEmailToFriendSenderInput!
recipients: [SendEmailToFriendRecipientInput!]!
}

type Sender {
input SendEmailToFriendSenderInput {
name: String!
email: String!
message: String!
}

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

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

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

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

0 comments on commit b0fa475

Please sign in to comment.