MongoError: Unknown modifier: $pushAll in node js : <p>I am having an issue when saving a model fails with <strong>mongo error: MongoError: Unknown modifier: $pushAll</strong>.</p>

<p>I have one array field <code>subDomains</code> in my schema and which will get saved as default with subdomain as like follows.</p>

<pre><code> // already Domain instance get availble 
 Domain.subDomains.push({'name': 'default' , 'role': 'xyz', ...});

 // save domain with default fileds
 Domain.save() 
</code></pre>

<p>System Info as like as follows:</p>

<pre><code>         ➜  ~ node --version
          v9.4.0
          ➜  ~ npm --version
          5.6.0
          ➜  ~ 
          ➜  ~ mongo --version
            MongoDB shell version v3.6.2
            git version: ......
            OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017
            allocator: system
            modules: none
            build environment:
                distarch: x86_64
                target_arch: x86_64
          ➜  ~ 
</code></pre>

<p>Please help me to sort out this one.</p>
