/
causal.fdl
47 lines (39 loc) · 970 Bytes
/
causal.fdl
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
"""
Wraps a rating box that we can put on various product pages
to collect ratings from our users
"""
feature RatingBox {
args {
"The product that we are collecting ratings for"
product: String!
}
output {
"The text next to the stars that prompts the visitor to rate the product"
callToAction: String! = "Rate this product!"
"The button text for the user submit a review."
actionButton: String! = "Send Review"
}
"Occurs each time a rating is collected"
event Rating {
stars: Int!
}
}
"An empty feature to use only as a kill switch"
feature ProductInfo {}
"""
Another feature just for demonstration purposes
"""
feature Feature2 {
args {
"Example args"
exampleArg: String!
}
output {
"Example output"
exampleOutput: String! = "Example output"
}
"Example event"
event ExampleEvent {
data: String!
}
}