-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.generated.json
98 lines (98 loc) · 2.76 KB
/
schema.generated.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"collections": [],
"functions": [
{
"arguments": {
"count": {
"type": {
"type": "nullable",
"underlying_type": {
"name": "Int",
"type": "named"
}
}
},
"greeting": {
"type": {
"name": "String",
"type": "named"
}
}
},
"description": "sends a hello message Function is an operation type of query, the name of function will be `hello` Example: curl http://localhost:8080/query -H 'content-type: application/json' -d \\ '{ \"collection\": \"hello\", \"arguments\": { \"greeting\": { \"type\": \"literal\", \"value\": \"Hello world!\" } }, \"collection_relationships\": {}, \"query\": { \"fields\": { \"reply\": { \"type\": \"column\", \"column\": \"reply\" }, \"count\": { \"type\": \"column\", \"column\": \"count\" } } } }'",
"name": "hello",
"result_type": {
"type": "nullable",
"underlying_type": {
"name": "HelloResult",
"type": "named"
}
}
}
],
"object_types": {
"CreateAuthorResult": {
"fields": {
"id": {
"type": {
"name": "Int",
"type": "named"
}
},
"name": {
"type": {
"name": "String",
"type": "named"
}
}
}
},
"HelloResult": {
"fields": {
"count": {
"type": {
"name": "Int",
"type": "named"
}
},
"reply": {
"type": {
"name": "String",
"type": "named"
}
}
}
}
},
"procedures": [
{
"arguments": {
"name": {
"type": {
"name": "String",
"type": "named"
}
}
},
"description": "creates an author Procedure is an operation type of mutation, the name of function will be `createAuthor` Example: curl http://localhost:8080/mutation -H 'content-type: application/json' -d \\ '{ \"operations\": [ { \"type\": \"procedure\", \"name\": \"createAuthor\", \"arguments\": { \"name\": \"John\" }, \"fields\": { \"type\": \"object\", \"fields\": { \"id\": { \"type\": \"column\", \"column\": \"id\" }, \"name\": { \"type\": \"column\", \"column\": \"name\" } } } } ], \"collection_relationships\": {} }'",
"name": "createAuthor",
"result_type": {
"type": "nullable",
"underlying_type": {
"name": "CreateAuthorResult",
"type": "named"
}
}
}
],
"scalar_types": {
"Int": {
"aggregate_functions": {},
"comparison_operators": {}
},
"String": {
"aggregate_functions": {},
"comparison_operators": {}
}
}
}