Skip to content

Commit 0f6584e

Browse files
fix: define Mutation type in GraphQL schema to ensure proper structure
1 parent 661e30f commit 0f6584e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

playground-nuxt/server/graphql/schema.graphql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ type Query {
66
greeting(name: String!): String!
77
}
88

9-
type Mutation
9+
type Mutation {
10+
_empty: String
11+
}

playground/server/graphql/schema.graphql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ type Query {
66
greeting(name: String!): String!
77
}
88

9-
type Mutation
9+
type Mutation {
10+
_empty: String
11+
}

0 commit comments

Comments
 (0)