Questions
The starting point for declaring a question on its own. A question declared this way can be kept in a field, added to several specs, and used to look up its typed answer in a response.
var department = Questions.named("department")
.choice("Which team should handle this?")
.option("billing", "Payments, invoicing, refunds")
.option("technical", "Bugs, outages, integrations")
.build();Content copied to clipboard