Skip to content

Commit eb2a5a3

Browse files
author
Alex Paliarush
committed
Mutations Prototype (POC) #74
- Added temporary placeholder field to Mutations
1 parent db3f2c7 commit eb2a5a3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type Query {
55
}
66

77
type Mutation {
8+
placeholderMutation: String @doc(description: "Mutation type cannot be declared without fields. The placeholder will be removed when at least one mutation field is declared.")
89
}
910

1011
input FilterTypeInput @doc(description: "FilterTypeInput specifies which action will be performed in a query ") {

dev/tests/integration/testsuite/Magento/Framework/GraphQl/_files/schemaA.graphqls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ type Query {
22
placeholder: String @doc(description: "comment for placeholder.")
33
}
44

5+
type Mutation {
6+
placeholder: String @doc(description: "comment for placeholder.")
7+
}
8+
59
input FilterTypeInput @doc(description:"Comment for FilterTypeInput") {
610
eq: String @doc(description:"Equal")
711
finset: [String]

0 commit comments

Comments
 (0)