-
Notifications
You must be signed in to change notification settings - Fork 1
/
mesg.yml
62 lines (62 loc) · 1.69 KB
/
mesg.yml
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
name: GraphQL service
sid: graphql
configuration:
# this service depends on the following services:
# - https://github.com/ilgooz/service-graphql-introspection
# - https://github.com/ilgooz/service-http-server
env:
- SCHEMA= # required. e.g. 'type Query { name: String }'
- ALLOW_GET=true
events:
query:
description: Emitted for every graphql query request
data:
sessionID:
description: Unique ID of graphql query request
type: String
fields:
description: Requested query fields
type: Object
repeated: true
object:
name:
description: Name of field
type: String
fields:
description: Child fields of field
type: Any
optional: true
args:
description: Arguments of field
type: Object
repeated: true
optional: true
object:
name:
description: Name of argument
type: String
value:
description: Value of argument
type: String
tasks:
completeQuery:
inputs:
sessionID:
description: Unique ID of graphql query request
type: String
data:
description: Data to send as response to graphql query request
type: Object
outputs:
success:
data:
sessionID:
description: Session ID of graphql query request
type: String
elapsedTime:
description: Elapsed time in nanoseconds for query request to complete
type: Number
error:
data:
message:
type: String