@unispechq/unispec-schema 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"schema": "type User { id: ID! username: String! email: String! posts: [Post!]! } type Post { id: ID! title: String! content: String! author: User! createdAt: String! } type Query { user(id: ID!): User posts: [Post!]! } type Mutation { createPost(title: String!, content: String!): Post! }",
|
|
14
14
|
"queries": [
|
|
15
15
|
{
|
|
16
|
-
"name": "
|
|
16
|
+
"name": "getUserProfile",
|
|
17
|
+
"operationName": "user",
|
|
17
18
|
"description": "Get user by ID",
|
|
18
19
|
"args": [
|
|
19
20
|
{
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
],
|
|
28
29
|
"mutations": [
|
|
29
30
|
{
|
|
30
|
-
"name": "
|
|
31
|
+
"name": "createBlogPost",
|
|
32
|
+
"operationName": "createPost",
|
|
31
33
|
"description": "Create a new post",
|
|
32
34
|
"args": [
|
|
33
35
|
{
|
package/package.json
CHANGED
|
@@ -73,6 +73,10 @@
|
|
|
73
73
|
"name": {
|
|
74
74
|
"$ref": "./common.schema.json#/$defs/Identifier"
|
|
75
75
|
},
|
|
76
|
+
"operationName": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "GraphQL operation name for queries. If not provided, defaults to the same value as 'name'. This represents the actual operation name used in GraphQL queries."
|
|
79
|
+
},
|
|
76
80
|
"description": {
|
|
77
81
|
"$ref": "./common.schema.json#/$defs/Description"
|
|
78
82
|
},
|