Conditional based on external variable (not in-query)

后端 未结 0 572
孤城傲影
孤城傲影 2020-12-31 23:43

I need to check if role must be required or not based on externalVar\'s value. How can I achieve that?

const Joi = require(\'joi\')

let externalVar = true

m         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题