简体   繁体   English

在Foxx中使用combobox创建查询参数

[英]Create a query params with combobox in Foxx

I wonder if I can create a query param that take multiple values from dropdown just like a non-typing combobox in the UI of ArangoDB. 我想知道是否可以创建一个查询参数,使其像ArangoDB UI中的非键入组合框一样从下拉列表中获取多个值。 For example 例如

//A route....
.queryParam('A', joi.any().allow(["true","false,"haha"]).required().default("true"))

The one above produce an dropdow that allow you to choose only 1 value. 上面的一个产生一个下拉菜单,您只能选择1个值。 Is it possible to make them behave like a combo box on arango's UI? 是否有可能使它们的行为像arango的UI上的组合框?

I use this query param join's validation that shows as a drop down in the Arango UI 我使用此查询参数联接的验证,在Arango UI中显示为下拉列表

.queryParam('direction', joi.string().lowercase().valid('inbound', 'outbound', 'any')
.required().description('Direction of traversal from given product (inbound/outbound/any)'
    ))

示例Arango UI显示下拉菜单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM