mongoDB 3.6的兼容性问题,以添加Validator

时间:2018-02-01 13:16:07

标签: mongodb

{“ok”:0,     “errmsg”:“featureCompatibilityVersion必须为3.6才能使用3.6查询功能创建集合验证器。请参阅http://dochub.mongodb.org/core/3.6-feature-compatibility。”,     “代码”:224,     “codeName”:“QueryFeatureNotAllowed” }

以上是mongoDb中的错误。

版本 - 3.6.2; 操作系统:Ubuntu 16.0.4;

1 个答案:

答案 0 :(得分:4)

Thanks guys for trying to Answer the question but I solved issue myself.

By the way the solution is given below:

db.adminCommand({setFeatureCompatibilityVersion: "3.6"})