{“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;
答案 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"})