We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encodeQueryObject这个函数 如果处理参数
{ risk: _.or(_.eq('低'), _.eq('高')), scale: _.or( _.and(_.gt(200000000), _.lt(1000000000)), _.gt(10000000000) ) }
会把 risk 和 scale 处理成 $or
{ "$or":[ {"risk":{"$eq":"低"}}, {"risk":{"$eq":"高"}}, {"$and":[{"scale":{"$gt":200000000}}, {"scale":{"$lt":1000000000}}]}, {"scale":{"$gt":10000000000}} ] }
实际上多个字段间应该默认是$and
The text was updated successfully, but these errors were encountered:
fix: encode query object with multiple logic command TencentCloudBase#8
d950311
No branches or pull requests
encodeQueryObject这个函数
如果处理参数
会把 risk 和 scale 处理成 $or
实际上多个字段间应该默认是$and
The text was updated successfully, but these errors were encountered: