What is valid DataWeave code to call the combineNames flow with the input object stored in the fullName
variable?
A #[dw::Flow::lookup(“combineNames”,vars.fullName)]
B #[lookup(“combineNames”,vars.fullName)]
C #[dw::Runtime::lookup(“combineNames”,vars.fullName)]
D #[combineNames,vars.fullName]
E #[lookup(combineNames(vars.fullName))]
答案:B
答案:B,注意firstName和lastName是作为employee的行内属性
A 20.3844 as :string{format:“.0#”}
B 20.3844 as String{format:“.0#”}
C 20.3844 as :string{format=“.0#”}
D 20.3844 as String as format:“.0#”
E 20.3844 as :string as format:“.0#”
F 20.3844 as String{format=“.0#”}
答案:B
A String
B Map
C Object
D Array
E Key
答案:D,和js的用法一样
What is valid DataWeave code to return flights with price under 500, grouped by toAirport in ascending order, with the lowest price first?
A payload groupBy $.toAirport filter $.price < 500 orderBy $.price
B payload groupBy $.toAirport filter $.price > 500 orderBy $.price
C payload filter $.price < 500 orderBy $.price groupBy $.toAirport
D payload filter $.price > 500 orderBy $.price groupBy $.toAirport
答案:C